forked from OSchip/llvm-project
parent
e86b7b0bb9
commit
fa41def6ce
|
@ -123,7 +123,8 @@ AliasAnalysis::ModRefResult GetLocation(const Instruction *Inst,
|
||||||
if (LI->isUnordered()) {
|
if (LI->isUnordered()) {
|
||||||
Loc = AA->getLocation(LI);
|
Loc = AA->getLocation(LI);
|
||||||
return AliasAnalysis::Ref;
|
return AliasAnalysis::Ref;
|
||||||
} else if (LI->getOrdering() == Monotonic) {
|
}
|
||||||
|
if (LI->getOrdering() == Monotonic) {
|
||||||
Loc = AA->getLocation(LI);
|
Loc = AA->getLocation(LI);
|
||||||
return AliasAnalysis::ModRef;
|
return AliasAnalysis::ModRef;
|
||||||
}
|
}
|
||||||
|
@ -135,7 +136,8 @@ AliasAnalysis::ModRefResult GetLocation(const Instruction *Inst,
|
||||||
if (SI->isUnordered()) {
|
if (SI->isUnordered()) {
|
||||||
Loc = AA->getLocation(SI);
|
Loc = AA->getLocation(SI);
|
||||||
return AliasAnalysis::Mod;
|
return AliasAnalysis::Mod;
|
||||||
} else if (SI->getOrdering() == Monotonic) {
|
}
|
||||||
|
if (SI->getOrdering() == Monotonic) {
|
||||||
Loc = AA->getLocation(SI);
|
Loc = AA->getLocation(SI);
|
||||||
return AliasAnalysis::ModRef;
|
return AliasAnalysis::ModRef;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue