[llvm] [LV] Support float and pointer conditional scalar assignments (PR #184101)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 03:55:48 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();
+ }
+
----------------
sdesmalen-arm wrote:
Yes, it's not necessary for this PR, I'll move it out.
https://github.com/llvm/llvm-project/pull/184101
More information about the llvm-commits
mailing list