Commit 5626adc
committed
[X86][SSE] combineVectorSignBitsTruncation - fold trunc(srl(x,c)) -> packss(sra(x,c))
If a srl doesn't introduce any sign bits into the truncated result, then replace with a sra to let us use a PACKSS truncation - fixes a regression noticed in D56387 on pre-SSE41 targets that don't have PACKUSDW.1 parent 58bdfcf commit 5626adc
File tree
2 files changed
+18
-5
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46071 | 46071 | | |
46072 | 46072 | | |
46073 | 46073 | | |
46074 | | - | |
| 46074 | + | |
| 46075 | + | |
46075 | 46076 | | |
46076 | 46077 | | |
| 46078 | + | |
| 46079 | + | |
| 46080 | + | |
| 46081 | + | |
| 46082 | + | |
| 46083 | + | |
| 46084 | + | |
| 46085 | + | |
| 46086 | + | |
| 46087 | + | |
| 46088 | + | |
| 46089 | + | |
| 46090 | + | |
46077 | 46091 | | |
46078 | 46092 | | |
46079 | 46093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
459 | 458 | | |
460 | 459 | | |
461 | 460 | | |
| |||
0 commit comments