diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-03 05:35:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-03 05:35:19 +0000 |
commit | ff2f6831434c586a00d8b63c8434bf24d1300e9a (patch) | |
tree | 60667d7d3bd95d77e8fded783fd609a32448ed93 /lib/Analysis/AliasSetTracker.cpp | |
parent | b8d264aa6b76b9f69da1f1a772dadd9b6fb949c3 (diff) |
remove unneeded checks of isFreeCall
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasSetTracker.cpp')
-rw-r--r-- | lib/Analysis/AliasSetTracker.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index 652ec3b5dd..c037c8d63a 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -13,7 +13,6 @@ #include "llvm/Analysis/AliasSetTracker.h" #include "llvm/Analysis/AliasAnalysis.h" -#include "llvm/Analysis/MemoryBuiltins.h" #include "llvm/Instructions.h" #include "llvm/IntrinsicInst.h" #include "llvm/Pass.h" @@ -305,13 +304,6 @@ bool AliasSetTracker::add(VAArgInst *VAAI) { bool AliasSetTracker::add(CallSite CS) { - Instruction* Inst = CS.getInstruction(); - if (isFreeCall(Inst)) { - bool NewPtr; - addPointer(Inst->getOperand(1), ~0, AliasSet::Mods, NewPtr); - return NewPtr; - } - if (isa<DbgInfoIntrinsic>(CS.getInstruction())) return true; // Ignore DbgInfo Intrinsics. if (AA.doesNotAccessMemory(CS)) @@ -435,14 +427,6 @@ bool AliasSetTracker::remove(VAArgInst *VAAI) { } bool AliasSetTracker::remove(CallSite CS) { - Instruction* Inst = CS.getInstruction(); - if (isFreeCall(Inst)) { - AliasSet *AS = findAliasSetForPointer(Inst->getOperand(1), ~0); - if (!AS) return false; - remove(*AS); - return true; - } - if (AA.doesNotAccessMemory(CS)) return false; // doesn't alias anything |