[llvm] [VPlan] Move call widening decision to VPlan. (NFCI) (PR #195518)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 08:30:20 PDT 2026
================
@@ -356,6 +364,17 @@ struct VPCostContext {
/// Forwards to LoopVectorizationCostModel::getPredBlockCostDivisor.
uint64_t getPredBlockCostDivisor(BasicBlock *BB) const;
+ /// Returns true if \p I is known to be scalarized at \p VF.
+ bool willBeScalarized(Instruction *I, ElementCount VF) const;
+
+ /// Forwards to LoopVectorizationCostModel::isMaskRequired.
+ bool isMaskRequired(Instruction *I) const;
----------------
artagnon wrote:
Could kindly land these independently?
https://github.com/llvm/llvm-project/pull/195518
More information about the llvm-commits
mailing list