From 39030b8d42365b2adbd6b37be87b8bbceb35e5f8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 Jan 2007 18:28:58 +0000 Subject: [PATCH] don't discriminate against bool llvm-svn: 33128 --- lib/Analysis/ScalarEvolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 27c9e622ca8..20a979a2e57 100644 --- 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(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;