Commit fa3ae38
committed
[LV] Re-compute cost of scalarized load users.
If there are direct memory op users of the newly scalarized load,
their cost may have changed because there's no scalarization
overhead for the operand. Update it.
This ensures assigning consistent costs to scalarized memory
instructions that themselves have scalarized memory instructions as
operands.
(cherry picked from commit 1a85027)1 parent 5d30383 commit fa3ae38
File tree
3 files changed
+490
-6
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize
- AArch64
- X86
3 files changed
+490
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5739 | 5739 | | |
5740 | 5740 | | |
5741 | 5741 | | |
| 5742 | + | |
| 5743 | + | |
| 5744 | + | |
| 5745 | + | |
| 5746 | + | |
| 5747 | + | |
| 5748 | + | |
| 5749 | + | |
| 5750 | + | |
| 5751 | + | |
| 5752 | + | |
| 5753 | + | |
| 5754 | + | |
| 5755 | + | |
5742 | 5756 | | |
5743 | 5757 | | |
5744 | 5758 | | |
| |||
5748 | 5762 | | |
5749 | 5763 | | |
5750 | 5764 | | |
5751 | | - | |
| 5765 | + | |
5752 | 5766 | | |
5753 | 5767 | | |
5754 | 5768 | | |
5755 | 5769 | | |
5756 | 5770 | | |
5757 | 5771 | | |
5758 | | - | |
| 5772 | + | |
| 5773 | + | |
5759 | 5774 | | |
5760 | 5775 | | |
5761 | | - | |
| 5776 | + | |
5762 | 5777 | | |
5763 | 5778 | | |
5764 | 5779 | | |
5765 | 5780 | | |
| 5781 | + | |
| 5782 | + | |
5766 | 5783 | | |
5767 | 5784 | | |
5768 | 5785 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
122 | | - | |
123 | | - | |
| 127 | + | |
124 | 128 | | |
125 | | - | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
0 commit comments