llvm-project
e724226d - [VPlan] Return cost of 0 for VPWidenCastRecipe without underlying value.

Commit
1 year ago
[VPlan] Return cost of 0 for VPWidenCastRecipe without underlying value. In some cases, VPWidenCastRecipes are created but not considered in the legacy cost model, including truncates/extends when evaluating a reduction in a smaller type. Return 0 for such casts for now, to avoid divergences between VPlan and legacy cost models. Fixes https://github.com/llvm/llvm-project/issues/113526.
Author
Committer
Parents
Loading