[llvm] [VPlan] Manage instruction medata in VPlan. (PR #135272)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 13:58:01 PDT 2025
================
@@ -2626,8 +2652,8 @@ class VPWidenMemoryRecipe : public VPRecipeBase {
VPWidenMemoryRecipe(const char unsigned SC, Instruction &I,
std::initializer_list<VPValue *> Operands,
bool Consecutive, bool Reverse, DebugLoc DL)
- : VPRecipeBase(SC, Operands, DL), Ingredient(I), Consecutive(Consecutive),
- Reverse(Reverse) {
+ : VPRecipeBase(SC, Operands, DL), VPIRMetadata(I), Ingredient(I),
----------------
ayalz wrote:
Can this way of initializing `VPIRMetadata(I)` be applied to all recipe constructors that receive their underlying instruction `I` as parameter? This seems like a natural default behavior, could be followed by an update if some other exceptional metadata is desired.
https://github.com/llvm/llvm-project/pull/135272
More information about the llvm-commits
mailing list