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:
4da0451
)
Although probably not necessary, guard against a potential assertion by
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 21:54:37 +0000
(21:54 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 21:54:37 +0000
(21:54 +0000)
using isNullValue() instead of getZExtValue() == 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34815
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 4c3a9754963fd33ad6a3dd217d77e147c697ddc3..fdcb404e11a583f2a5cc4cf81159eb7933603542 100644
(file)
--- a/
lib/Transforms/Scalar/CondPropagate.cpp
+++ b/
lib/Transforms/Scalar/CondPropagate.cpp
@@
-139,7
+139,7
@@
void CondProp::SimplifyPredecessors(BranchInst *BI) {
// ultimate destination.
bool PHIGone = PN->getNumIncomingValues() == 2;
RevectorBlockTo(PN->getIncomingBlock(i-1),
- BI->getSuccessor(CB->
getZExtValue() == 0
));
+ BI->getSuccessor(CB->
isNullValue()
));
++NumBrThread;
// If there were two predecessors before this simplification, the PHI node