projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PM/AA] Extract the ModRef enums from the AliasAnalysis class in
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
Sink.cpp
diff --git
a/lib/Transforms/Scalar/Sink.cpp
b/lib/Transforms/Scalar/Sink.cpp
index f49f4eaaedcb00620649a854b791a811c78b4315..17684c04dc4d1c83221a9b163fb0ca2bae4372cd 100644
(file)
--- a/
lib/Transforms/Scalar/Sink.cpp
+++ b/
lib/Transforms/Scalar/Sink.cpp
@@
-165,7
+165,7
@@
static bool isSafeToMove(Instruction *Inst, AliasAnalysis *AA,
if (LoadInst *L = dyn_cast<LoadInst>(Inst)) {
MemoryLocation Loc = MemoryLocation::get(L);
for (Instruction *S : Stores)
- if (AA->getModRefInfo(S, Loc) &
AliasAnalysis::
Mod)
+ if (AA->getModRefInfo(S, Loc) &
MRI_
Mod)
return false;
}