Commit 45aaa3e
Automerge: [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 #153570
(cherry picked from 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 | |
|---|---|---|---|
| |||
26236 | 26236 | | |
26237 | 26237 | | |
26238 | 26238 | | |
26239 | | - | |
26240 | | - | |
26241 | | - | |
26242 | | - | |
| 26239 | + | |
| 26240 | + | |
| 26241 | + | |
26243 | 26242 | | |
26244 | 26243 | | |
26245 | 26244 | | |
| |||
26255 | 26254 | | |
26256 | 26255 | | |
26257 | 26256 | | |
| 26257 | + | |
| 26258 | + | |
| 26259 | + | |
| 26260 | + | |
| 26261 | + | |
| 26262 | + | |
| 26263 | + | |
| 26264 | + | |
| 26265 | + | |
| 26266 | + | |
| 26267 | + | |
26258 | 26268 | | |
26259 | 26269 | | |
26260 | 26270 | | |
| |||
| 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