Commit c283dab
committed
[InstCombine] Keep or disjoint after folding casted bitwise logic
Optimize
`or disjoint (zext/sext a) (zext/sext b))`
to
`(zext/sext (or disjoint a, b))`
without losing disjoint.
Confirmed by: https://alive2.llvm.org/ce/z/kQ5fJv.1 parent 803e4e0 commit c283dab
File tree
2 files changed
+7
-4
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1869 | 1869 | | |
1870 | 1870 | | |
1871 | 1871 | | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
1872 | 1875 | | |
1873 | 1876 | | |
1874 | 1877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4338 | 4338 | | |
4339 | 4339 | | |
4340 | 4340 | | |
4341 | | - | |
| 4341 | + | |
4342 | 4342 | | |
4343 | 4343 | | |
4344 | 4344 | | |
| |||
4351 | 4351 | | |
4352 | 4352 | | |
4353 | 4353 | | |
4354 | | - | |
| 4354 | + | |
4355 | 4355 | | |
4356 | 4356 | | |
4357 | 4357 | | |
| |||
4494 | 4494 | | |
4495 | 4495 | | |
4496 | 4496 | | |
4497 | | - | |
| 4497 | + | |
4498 | 4498 | | |
4499 | 4499 | | |
4500 | 4500 | | |
| |||
4507 | 4507 | | |
4508 | 4508 | | |
4509 | 4509 | | |
4510 | | - | |
| 4510 | + | |
4511 | 4511 | | |
4512 | 4512 | | |
4513 | 4513 | | |
| |||
0 commit comments