Commit f6182e3
committed
[X86] Only fold AND/ANDNP back to VSELECT if we know the predicated mask select is legal
By only checking type legality we didn't account for 128/256-bit ops being run on non-AVX512VL targets, or vXi8/i16 ops being run on non-AVX512BW targets
This check is cropping up in several places now and I intend to hoist it out into a common helper, but this initial fix needs to be as clean as possible to be back ported to 21.X
Fixes #1562561 parent d29dc18 commit f6182e3
File tree
2 files changed
+29
-0
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51856 | 51856 | | |
51857 | 51857 | | |
51858 | 51858 | | |
| 51859 | + | |
| 51860 | + | |
51859 | 51861 | | |
51860 | 51862 | | |
51861 | 51863 | | |
| |||
55420 | 55422 | | |
55421 | 55423 | | |
55422 | 55424 | | |
| 55425 | + | |
| 55426 | + | |
55423 | 55427 | | |
55424 | 55428 | | |
55425 | 55429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments