projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c6ccb
)
revert r159440. As Duncan pointed out, the test for invoke is not needed at this...
author
Nuno Lopes
<nunoplopes@sapo.pt>
Fri, 29 Jun 2012 22:10:10 +0000
(22:10 +0000)
committer
Nuno Lopes
<nunoplopes@sapo.pt>
Fri, 29 Jun 2012 22:10:10 +0000
(22:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159471
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/Local.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/Local.cpp
b/lib/Transforms/Utils/Local.cpp
index e9097a4053c085bc3abef62d14b235ab45e4086b..bed7d72fffc68bdb7de5daf6a17c849ef8c37300 100644
(file)
--- a/
lib/Transforms/Utils/Local.cpp
+++ b/
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)))