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:
7cfdd0b
)
Fix a minor bug handling constant exprs, introduced by a recent patch.
author
Chris Lattner
<sabre@nondot.org>
Sat, 13 Jan 2007 00:42:58 +0000
(
00:42
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 13 Jan 2007 00:42:58 +0000
(
00:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33175
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/SCCP.cpp
b/lib/Transforms/Scalar/SCCP.cpp
index 1ebc1cf4a9e0b098c74fe17e29a7d7e011158593..5d05ef86c395175ec1c3546deea329ba3860c173 100644
(file)
--- a/
lib/Transforms/Scalar/SCCP.cpp
+++ b/
lib/Transforms/Scalar/SCCP.cpp
@@
-476,7
+476,7
@@
bool SCCPSolver::isEdgeFeasible(BasicBlock *From, BasicBlock *To) {
return true;
} else if (BCValue.isConstant()) {
// Not branching on an evaluatable constant?
- if (
BCValue.getConstant()->getType() != Type::Int1Ty
) return true;
+ if (
!isa<ConstantInt>(BCValue.getConstant())
) return true;
// Constant condition variables mean the branch can only go a single way
return BI->getSuccessor(BCValue.getConstant() ==