mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Fix recent regression in gcc.dg/pr26719.c (6835035).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -812,11 +812,14 @@ SCEVHandle ScalarEvolution::getSignExtendExpr(const SCEVHandle &Op,
|
||||
SCEVHandle Step = AR->getStepRecurrence(*this);
|
||||
|
||||
// Check whether the backedge-taken count can be losslessly casted to
|
||||
// the addrec's type. The count is always unsigned.
|
||||
// the addrec's type. The count needs to be the same whether sign
|
||||
// extended or zero extended.
|
||||
SCEVHandle CastedBECount =
|
||||
getTruncateOrZeroExtend(BECount, Start->getType());
|
||||
if (BECount ==
|
||||
getTruncateOrZeroExtend(CastedBECount, BECount->getType())) {
|
||||
getTruncateOrZeroExtend(CastedBECount, BECount->getType()) &&
|
||||
BECount ==
|
||||
getTruncateOrSignExtend(CastedBECount, BECount->getType())) {
|
||||
const Type *WideTy =
|
||||
IntegerType::get(getTypeSizeInBits(Start->getType()) * 2);
|
||||
SCEVHandle SMul =
|
||||
|
Reference in New Issue
Block a user