[llvm-commits] [llvm] r159440 - /llvm/trunk/lib/Transforms/Utils/Local.cpp
Nuno Lopes
nunoplopes at sapo.pt
Fri Jun 29 10:37:07 PDT 2012
Author: nlopes
Date: Fri Jun 29 12:37:07 2012
New Revision: 159440
URL: http://llvm.org/viewvc/llvm-project?rev=159440&view=rev
Log:
ignore 'invoke new' in isInstructionTriviallyDead, since most callers are not ready to handle invokes. instcombine will take care of this.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=159440&r1=159439&r2=159440&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Fri Jun 29 12:37:07 2012
@@ -265,7 +265,8 @@
return isa<UndefValue>(II->getArgOperand(1));
}
- if (isAllocLikeFn(I)) return true;
+ if (isAllocLikeFn(I))
+ return isa<CallInst>(I); // do not mess around with invoke here
if (CallInst *CI = isFreeCall(I))
if (Constant *C = dyn_cast<Constant>(CI->getArgOperand(0)))
More information about the llvm-commits
mailing list