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:
05b30d8
)
don't discriminate against bool
author
Chris Lattner
<sabre@nondot.org>
Fri, 12 Jan 2007 18:28:58 +0000
(18:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 12 Jan 2007 18:28:58 +0000
(18:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33128
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ScalarEvolution.cpp
b/lib/Analysis/ScalarEvolution.cpp
index 27c9e622ca85fad5025fe40177d3f8fc1dc18580..20a979a2e57bcecceb36634ac35e536c8d9a2a1f 100644
(file)
--- a/
lib/Analysis/ScalarEvolution.cpp
+++ b/
lib/Analysis/ScalarEvolution.cpp
@@
-1930,7
+1930,7
@@
ComputeIterationCountExhaustively(const Loop *L, Value *Cond, bool ExitWhen) {
dyn_cast_or_null<ConstantInt>(EvaluateExpression(Cond, PHIVal));
// Couldn't symbolically evaluate.
- if (!CondVal
|| CondVal->getType() != Type::Int1Ty
) return UnknownValue;
+ if (!CondVal) return UnknownValue;
if (CondVal->getZExtValue() == ExitWhen) {
ConstantEvolutionLoopExitValue[PN] = PHIVal;