Commit ba1f367
committed
[TTI][X86] getShuffleCosts - for SK_PermuteTwoSrc, if the masks are known to be "inlane" no need to scale the costs by worst-case legalization
SK_PermuteTwoSrc legalization has to assume any of the legalised source registers could be referenced in split shuffles, but if we already know that each 128-bit lane only references elements from the same lane of the source operands, then this scaling won't occur.
Hopefully this can help with llvm#113356 without us having to get full processShuffleMasks canonicalization finished first.1 parent 5208bc3 commit ba1f367
File tree
10 files changed
+232
-238
lines changed- llvm
- lib/Target/X86
- test
- Analysis/CostModel/X86
- Transforms/PhaseOrdering/X86
10 files changed
+232
-238
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
| 1778 | + | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
| |||
Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
| |||
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
53 | | - | |
| 46 | + | |
| 47 | + | |
0 commit comments