From: Nuno Lopes Date: Fri, 29 Jun 2012 22:10:10 +0000 (+0000) Subject: revert r159440. As Duncan pointed out, the test for invoke is not needed at this... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ea4755300665eaf03599d0cc55cfdd2c27946a19;p=oota-llvm.git revert r159440. As Duncan pointed out, the test for invoke is not needed at this point git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159471 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index e9097a4053c..bed7d72fffc 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/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)))