[llvm] [VPlan] Manage instruction medata in VPlan. (PR #135272)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 06:50:24 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:
Certainly, by all means!
Any recipe that can be constructed w/o an underlying instruction should be; at that point its metadata can be passed instead of the instruction itself.
https://github.com/llvm/llvm-project/pull/135272
More information about the llvm-commits
mailing list