Commit 9d992f2
committed
[LV] Correctly cost chains of replicating calls in legacy CM.
Check for scalarized calls in needsExtract to fix a divergence between
legacy and VPlan-based cost model.
The legacy cost model was missing a check for scalarized calls in
needsExtract, which meant if incorrectly assumed the result of a
scalarized call needs extracting.
Exposed by llvm#154617.
Fixes llvm#156091.
(cherry picked from commit 0aac227)1 parent a20edc7 commit 9d992f2
File tree
3 files changed
+610
-418
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize/X86
3 files changed
+610
-418
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1152 | 1152 | | |
1153 | 1153 | | |
1154 | 1154 | | |
1155 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1156 | 1159 | | |
1157 | 1160 | | |
1158 | 1161 | | |
| |||
1665 | 1668 | | |
1666 | 1669 | | |
1667 | 1670 | | |
1668 | | - | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
1669 | 1674 | | |
1670 | 1675 | | |
1671 | 1676 | | |
| |||
0 commit comments