diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-03 05:33:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-03 05:33:46 +0000 |
| commit | 5a3832496adce1fd906d229ef987b2088d8cf5ac (patch) | |
| tree | 2918e42b5487a8118c26aedda2620cea804bb013 /llvm/lib/Transforms | |
| parent | 3deabca934c6b8d2dfa11eb37c1f1b4b82560c26 (diff) | |
| download | bcm5719-llvm-5a3832496adce1fd906d229ef987b2088d8cf5ac.tar.gz bcm5719-llvm-5a3832496adce1fd906d229ef987b2088d8cf5ac.zip | |
remove a isFreeCall check: it is a callinst that can write to memory already.
llvm-svn: 85863
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index fcaf69efc59..543ddf15d10 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -24,7 +24,6 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/Analysis/ConstantFolding.h" #include "llvm/Analysis/DebugInfo.h" -#include "llvm/Analysis/MemoryBuiltins.h" #include "llvm/Analysis/ProfileInfo.h" #include "llvm/Target/TargetData.h" #include "llvm/Support/GetElementPtrTypeIterator.h" @@ -60,8 +59,8 @@ bool llvm::isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom) { // If we see a free or a call which may write to memory (i.e. which might do // a free) the pointer could be marked invalid. - if (isFreeCall(BBI) || (isa<CallInst>(BBI) && BBI->mayWriteToMemory() && - !isa<DbgInfoIntrinsic>(BBI))) + if (isa<CallInst>(BBI) && BBI->mayWriteToMemory() && + !isa<DbgInfoIntrinsic>(BBI)) return false; if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { |

