[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:21 PDT 2026
================
@@ -1940,12 +1946,17 @@ void VPWidenIntrinsicRecipe::execute(VPTransformState &State) {
State.set(this, V);
}
-/// Compute the cost for the intrinsic \p ID with \p Operands, produced by \p R.
-static InstructionCost getCostForIntrinsics(Intrinsic::ID ID,
- ArrayRef<const VPValue *> Operands,
- const VPRecipeWithIRFlags &R,
- ElementCount VF,
- VPCostContext &Ctx) {
+bool VPCostContext::isFreeScalarIntrinsic(Intrinsic::ID ID) {
+ return is_contained({Intrinsic::assume, Intrinsic::lifetime_end,
+ Intrinsic::lifetime_start, Intrinsic::sideeffect,
+ Intrinsic::pseudoprobe,
+ Intrinsic::experimental_noalias_scope_decl},
+ ID);
+}
----------------
artagnon wrote:
Could kindly land this independently?
https://github.com/llvm/llvm-project/pull/195518
More information about the llvm-commits
mailing list