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:
0fab59c
)
eliminate redundant check
author
Chris Lattner
<sabre@nondot.org>
Fri, 12 Jan 2007 18:35:11 +0000
(18:35 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 12 Jan 2007 18:35:11 +0000
(18:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33132
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/CondPropagate.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CondPropagate.cpp
b/lib/Transforms/Scalar/CondPropagate.cpp
index 253535e3a5e1c3e7398fe4d489eaaa11a0a0aa24..55dccd784086c5244bf02ad278ef0d80c68c4331 100644
(file)
--- a/
lib/Transforms/Scalar/CondPropagate.cpp
+++ b/
lib/Transforms/Scalar/CondPropagate.cpp
@@
-134,7
+134,6
@@
void CondProp::SimplifyPredecessors(BranchInst *BI) {
// possible, and to avoid invalidating "i".
for (unsigned i = PN->getNumIncomingValues(); i != 0; --i)
if (ConstantInt *CB = dyn_cast<ConstantInt>(PN->getIncomingValue(i-1))) {
- if (CB->getType() != Type::Int1Ty) continue;
// If we have a constant, forward the edge from its current to its
// ultimate destination.
bool PHIGone = PN->getNumIncomingValues() == 2;