Commit 0cf3c67
committed
[LegalizeTypes][X86][PowerPC] Use shift by 1 instead of adding a value to itself to double.
Using a shift is the correct way to handle undef and works better with
our optimizations that move freeze around.
The X86 code looks like an improvment, but PowerPC might be a regression.
Hoping this improves some code for #86850.1 parent 2598aa6 commit 0cf3c67
File tree
4 files changed
+38
-38
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen
- PowerPC
- X86
4 files changed
+38
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | 168 | | |
| 169 | + | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
175 | 174 | | |
176 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
190 | | - | |
191 | | - | |
| 191 | + | |
| 192 | + | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | 244 | | |
246 | | - | |
| 245 | + | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
251 | | - | |
252 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1019 | 1019 | | |
1020 | 1020 | | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
| 1021 | + | |
| 1022 | + | |
1024 | 1023 | | |
1025 | 1024 | | |
1026 | 1025 | | |
| |||
1362 | 1361 | | |
1363 | 1362 | | |
1364 | 1363 | | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1368 | 1367 | | |
1369 | 1368 | | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
| 1369 | + | |
| 1370 | + | |
1373 | 1371 | | |
1374 | 1372 | | |
1375 | 1373 | | |
| |||
1746 | 1744 | | |
1747 | 1745 | | |
1748 | 1746 | | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
1752 | 1750 | | |
1753 | 1751 | | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
| 1752 | + | |
| 1753 | + | |
1757 | 1754 | | |
1758 | 1755 | | |
1759 | 1756 | | |
| |||
2128 | 2125 | | |
2129 | 2126 | | |
2130 | 2127 | | |
2131 | | - | |
2132 | | - | |
2133 | | - | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
2134 | 2131 | | |
2135 | 2132 | | |
2136 | | - | |
2137 | | - | |
2138 | | - | |
| 2133 | + | |
| 2134 | + | |
2139 | 2135 | | |
2140 | 2136 | | |
2141 | 2137 | | |
| |||
0 commit comments