Commit ba707db
authored
[X86] getScalarMaskingNode - if the mask is zero just return the blended passthrough and preserved source value (#153575)
We already handle the case if the mask is one, so I added the other case where the op is replaced with a MOVSH/S/D blend.
This assumes the scalar passthrough is op0.
I had to adjust the test case for #98306 as AFAICT it'd been over
reduced
Fixes #1535701 parent c488584 commit ba707db
File tree
3 files changed
+33
-7
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
3 files changed
+33
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26269 | 26269 | | |
26270 | 26270 | | |
26271 | 26271 | | |
26272 | | - | |
26273 | | - | |
26274 | | - | |
26275 | | - | |
| 26272 | + | |
| 26273 | + | |
| 26274 | + | |
26276 | 26275 | | |
26277 | 26276 | | |
26278 | 26277 | | |
| |||
26288 | 26287 | | |
26289 | 26288 | | |
26290 | 26289 | | |
| 26290 | + | |
| 26291 | + | |
| 26292 | + | |
| 26293 | + | |
| 26294 | + | |
| 26295 | + | |
| 26296 | + | |
| 26297 | + | |
| 26298 | + | |
| 26299 | + | |
| 26300 | + | |
26291 | 26301 | | |
26292 | 26302 | | |
26293 | 26303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1361 | 1361 | | |
1362 | 1362 | | |
1363 | 1363 | | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
0 commit comments