mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Temporarily revert 123133, it's causing some regressions and I'm trying
to get a testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3077ca97bd
commit
87376839a6
@ -1560,14 +1560,10 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
|
|||||||
AddRecOps[0] = getAddExpr(LIOps);
|
AddRecOps[0] = getAddExpr(LIOps);
|
||||||
|
|
||||||
// Build the new addrec. Propagate the NUW and NSW flags if both the
|
// Build the new addrec. Propagate the NUW and NSW flags if both the
|
||||||
// outer add and the inner addrec are guaranteed to have no overflow or if
|
// outer add and the inner addrec are guaranteed to have no overflow.
|
||||||
// there is no outer part.
|
const SCEV *NewRec = getAddRecExpr(AddRecOps, AddRecLoop,
|
||||||
if (Ops.size() != 1) {
|
HasNUW && AddRec->hasNoUnsignedWrap(),
|
||||||
HasNUW &= AddRec->hasNoUnsignedWrap();
|
HasNSW && AddRec->hasNoSignedWrap());
|
||||||
HasNSW &= AddRec->hasNoSignedWrap();
|
|
||||||
}
|
|
||||||
|
|
||||||
const SCEV *NewRec = getAddRecExpr(AddRecOps, AddRecLoop, HasNUW, HasNSW);
|
|
||||||
|
|
||||||
// If all of the other operands were loop invariant, we are done.
|
// If all of the other operands were loop invariant, we are done.
|
||||||
if (Ops.size() == 1) return NewRec;
|
if (Ops.size() == 1) return NewRec;
|
||||||
|
Loading…
Reference in New Issue
Block a user