[llvm] [LV] Avoid crashing for vector calls with scalar byte types (PR #197417)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 05:30:59 PDT 2026
================
@@ -5026,7 +5027,8 @@ void LoopVectorizationCostModel::setVectorizedCallDecision(ElementCount VF) {
// TODO: do we need to figure out the cost of an extract to get the
// first lane? Or do we hope that it will be folded away?
ScalarEvolution *SE = PSE.getSE();
- if (!match(SE->getSCEV(ScalarParam),
+ if (!SE->isSCEVable(ScalarParam->getType()) ||
----------------
huntergr-arm wrote:
Yep, the test file hits an assert without those changes.
https://github.com/llvm/llvm-project/pull/197417
More information about the llvm-commits
mailing list