mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
no need to worry about int vs uint any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32946 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab4be63287
commit
d5dc0fb011
@ -900,8 +900,7 @@ unsigned LoopStrengthReduce::CheckForIVReuse(const SCEVHandle &Stride,
|
|||||||
IE = SI->second.IVs.end(); II != IE; ++II)
|
IE = SI->second.IVs.end(); II != IE; ++II)
|
||||||
// FIXME: Only handle base == 0 for now.
|
// FIXME: Only handle base == 0 for now.
|
||||||
// Only reuse previous IV if it would not require a type conversion.
|
// Only reuse previous IV if it would not require a type conversion.
|
||||||
if (isZero(II->Base) &&
|
if (isZero(II->Base) && II->Base->getType() == Ty) {
|
||||||
II->Base->getType()->canLosslesslyBitCastTo(Ty)) {
|
|
||||||
IV = *II;
|
IV = *II;
|
||||||
return Scale;
|
return Scale;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user