Commit c324fc5
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 af47038 commit c324fc5
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2237 | 2237 | | |
2238 | 2238 | | |
2239 | 2239 | | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
2240 | 2245 | | |
2241 | 2246 | | |
2242 | 2247 | | |
| |||
0 commit comments