mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
don't discriminate against bool
llvm-svn: 33128
This commit is contained in:
parent
be3dff7815
commit
39030b8d42
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user