Commit 635e8bd
committed
[InstCombine] Add handling for (or (zext x), (shl (zext (ashr x, bw-1))), bw) -> (sext x) fold
Minor tweak #129363 which handled all the cases where there was a sext for the original source value, but not for cases where the source is already half the size of the destination type
Another regression noticed in #765241 parent 445c43d commit 635e8bd
File tree
2 files changed
+4
-9
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3122 | 3122 | | |
3123 | 3123 | | |
3124 | 3124 | | |
3125 | | - | |
| 3125 | + | |
3126 | 3126 | | |
3127 | | - | |
| 3127 | + | |
3128 | 3128 | | |
3129 | | - | |
| 3129 | + | |
3130 | 3130 | | |
3131 | | - | |
3132 | 3131 | | |
3133 | 3132 | | |
3134 | 3133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 97 | + | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
| |||
0 commit comments