Commit dd6eff5
committed
[InstCombine] Handle trunc i1 pattern in eq-of-parts fold
Equality/inequality of the low bit can be represented by
`(trunc (xor x, y) to i1)`, possibly with an extra not. We have
to handle this in the eq-of-parts fold now that we no longer
canonicalize this to a masked icmp.
Proofs: https://alive2.llvm.org/ce/z/qidkzq
Fixes #110919.1 parent 321fe74 commit dd6eff5
File tree
3 files changed
+20
-16
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
3 files changed
+20
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | | - | |
1189 | | - | |
| 1188 | + | |
1190 | 1189 | | |
1191 | 1190 | | |
1192 | 1191 | | |
1193 | 1192 | | |
1194 | | - | |
| 1193 | + | |
1195 | 1194 | | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1196 | 1207 | | |
1197 | 1208 | | |
1198 | 1209 | | |
| |||
3404 | 3415 | | |
3405 | 3416 | | |
3406 | 3417 | | |
3407 | | - | |
3408 | | - | |
3409 | | - | |
3410 | 3418 | | |
3411 | 3419 | | |
3412 | 3420 | | |
| |||
3529 | 3537 | | |
3530 | 3538 | | |
3531 | 3539 | | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
3532 | 3543 | | |
3533 | 3544 | | |
3534 | 3545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
| 1444 | + | |
1449 | 1445 | | |
1450 | 1446 | | |
1451 | 1447 | | |
| |||
1494 | 1490 | | |
1495 | 1491 | | |
1496 | 1492 | | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
| 1493 | + | |
1501 | 1494 | | |
1502 | 1495 | | |
1503 | 1496 | | |
| |||
0 commit comments