Commit 29065eb
committed
[SCEV] Don't require NUW at first add when checking A+C1 < (A+C2)<nuw>
Relax the NUW requirements for isKnownPredicateViaNoOverflow, if the
second operand (Y) is a BinOp. The code only simplifies the condition if
C1 < C2, so if the BinOp is NUW, it doesn't matter whether the first
operand also has the NUW flag, as it cannot wrap if C1 < C2.1 parent 448c6db commit 29065eb
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11228 | 11228 | | |
11229 | 11229 | | |
11230 | 11230 | | |
11231 | | - | |
11232 | | - | |
| 11231 | + | |
11233 | 11232 | | |
11234 | 11233 | | |
11235 | 11234 | | |
| |||
11238 | 11237 | | |
11239 | 11238 | | |
11240 | 11239 | | |
11241 | | - | |
11242 | | - | |
| 11240 | + | |
11243 | 11241 | | |
11244 | 11242 | | |
11245 | | - | |
| 11243 | + | |
11246 | 11244 | | |
11247 | 11245 | | |
| 11246 | + | |
| 11247 | + | |
| 11248 | + | |
| 11249 | + | |
| 11250 | + | |
| 11251 | + | |
| 11252 | + | |
| 11253 | + | |
| 11254 | + | |
| 11255 | + | |
11248 | 11256 | | |
11249 | 11257 | | |
11250 | 11258 | | |
| |||
0 commit comments