summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-06-29 22:10:10 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-06-29 22:10:10 +0000
commit7b12b87096da8816ddde73f72a46dae4d001f380 (patch)
treeb5920a42e786fe3c4d362c28e9f741936b90ccd7 /llvm/lib
parentb1b3db6802025b51126f4722021b447ddfee5dce (diff)
downloadbcm5719-llvm-7b12b87096da8816ddde73f72a46dae4d001f380.tar.gz
bcm5719-llvm-7b12b87096da8816ddde73f72a46dae4d001f380.zip
revert r159440. As Duncan pointed out, the test for invoke is not needed at this point
llvm-svn: 159471
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index e9097a4053c..bed7d72fffc 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -265,8 +265,7 @@ bool llvm::isInstructionTriviallyDead(Instruction *I) {
return isa<UndefValue>(II->getArgOperand(1));
}
- if (isAllocLikeFn(I))
- return isa<CallInst>(I); // do not mess around with invoke here
+ if (isAllocLikeFn(I)) return true;
if (CallInst *CI = isFreeCall(I))
if (Constant *C = dyn_cast<Constant>(CI->getArgOperand(0)))
OpenPOWER on IntegriCloud