Commit 987ecd8
committed
[VPlan] Add legal checks in VPWidenMemoryRecipe::computeCost(). NFC
Add legal checks in the vplan-based cost model that align to the legacy
cost model (setCostBasedWideningDecision()).
This is patch is not quite a NFC patch but currently we don't have a
target that support `ActiveVectorLength && ScalableVector` but not support
`gather/scatter` nor return valid cost by `TTI.getGatherScatterOpCost`.
Fixing the gap can prevent potentail failure in the future.1 parent 30f5a3c commit 987ecd8
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2148 | 2148 | | |
2149 | 2149 | | |
2150 | 2150 | | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
2151 | 2156 | | |
2152 | 2157 | | |
2153 | 2158 | | |
| |||
0 commit comments