From 7b12b87096da8816ddde73f72a46dae4d001f380 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 29 Jun 2012 22:10:10 +0000 Subject: revert r159440. As Duncan pointed out, the test for invoke is not needed at this point llvm-svn: 159471 --- llvm/lib/Transforms/Utils/Local.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Transforms') 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(II->getArgOperand(1)); } - if (isAllocLikeFn(I)) - return isa(I); // do not mess around with invoke here + if (isAllocLikeFn(I)) return true; if (CallInst *CI = isFreeCall(I)) if (Constant *C = dyn_cast(CI->getArgOperand(0))) -- cgit v1.2.3