From 03d1bca60a493eb7dbfca3186f408be93512cc4e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 3 Nov 2009 05:35:19 +0000 Subject: [PATCH] remove unneeded checks of isFreeCall llvm-svn: 85866 --- llvm/lib/Analysis/AliasSetTracker.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 652ec3b5dd3c..c037c8d63afb 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/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(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