Commit eed10c9
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 9a8305b commit eed10c9
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11292 | 11292 | | |
11293 | 11293 | | |
11294 | 11294 | | |
11295 | | - | |
11296 | | - | |
| 11295 | + | |
11297 | 11296 | | |
11298 | 11297 | | |
11299 | 11298 | | |
| |||
11302 | 11301 | | |
11303 | 11302 | | |
11304 | 11303 | | |
11305 | | - | |
11306 | | - | |
| 11304 | + | |
11307 | 11305 | | |
11308 | 11306 | | |
11309 | | - | |
| 11307 | + | |
11310 | 11308 | | |
11311 | 11309 | | |
| 11310 | + | |
| 11311 | + | |
| 11312 | + | |
| 11313 | + | |
| 11314 | + | |
| 11315 | + | |
| 11316 | + | |
| 11317 | + | |
| 11318 | + | |
| 11319 | + | |
11312 | 11320 | | |
11313 | 11321 | | |
11314 | 11322 | | |
| |||
0 commit comments