Commit a9402ae
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 d9cd607 commit a9402ae
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 | | |
| |||
3413 | 3424 | | |
3414 | 3425 | | |
3415 | 3426 | | |
3416 | | - | |
3417 | | - | |
3418 | | - | |
3419 | 3427 | | |
3420 | 3428 | | |
3421 | 3429 | | |
| |||
3538 | 3546 | | |
3539 | 3547 | | |
3540 | 3548 | | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
3541 | 3552 | | |
3542 | 3553 | | |
3543 | 3554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| |||
| 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