[llvm] [LV] Support float and pointer conditional scalar assignments (PR #184101)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 07:10:10 PST 2026
================
@@ -627,6 +627,13 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
if (VTy->getElementCount() == ElementCount::getScalable(1))
return InstructionCost::getInvalid();
+ // Likewise if any of the operands is a <vscale x 1 x eltty>.
+ for (const Type *ArgTy : ICA.getArgTypes()) {
+ if (auto *ArgVTy = dyn_cast<ScalableVectorType>(ArgTy))
+ if (ArgVTy->getElementCount() == ElementCount::getScalable(1))
+ return InstructionCost::getInvalid();
+ }
+
----------------
fhahn wrote:
sounds good. Ideally the lowering should also not crash.
https://github.com/llvm/llvm-project/pull/184101
More information about the llvm-commits
mailing list