Skip to content

Commit 1a71b35

Browse files
committed
!fixup strip more
1 parent 85fd68e commit 1a71b35

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11437,11 +11437,9 @@ bool ScalarEvolution::isKnownPredicateViaNoOverflow(CmpPredicate Pred,
1143711437
// second ADD (with the larger constant) requires NUW.
1143811438
if ((YFlagsPresent & ExpectedFlags) != ExpectedFlags)
1143911439
return false;
11440-
if (ExpectedFlags != SCEV::FlagNUW) {
11441-
if ((XFlagsPresent & ExpectedFlags) != ExpectedFlags)
11442-
return false;
11443-
if ((YFlagsPresent & ExpectedFlags) != ExpectedFlags)
11444-
return false;
11440+
if (ExpectedFlags != SCEV::FlagNUW &&
11441+
(XFlagsPresent & ExpectedFlags) != ExpectedFlags) {
11442+
return false;
1144511443
}
1144611444

1144711445
OutC1 = cast<SCEVConstant>(XConstOp)->getAPInt();

0 commit comments

Comments
 (0)