mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
don't discriminate against bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05b30d840a
commit
ef3baf0979
@ -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