[llvm] [VPlan] Manage instruction medata in VPlan. (PR #135272)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 03:11:09 PDT 2025


================
@@ -233,6 +233,11 @@ class VPRecipeBuilder {
     }
     return Plan.getOrAddLiveIn(V);
   }
+
+  /// Returns the metatadata that can be preserved from the original instruction
+  /// \p I, including noalias metadata guaranteed by runtime checks.
+  SmallVector<std::pair<unsigned, MDNode *>>
+  getMetadataToPropagate(Instruction *I);
----------------
ayalz wrote:

Just noting that this appears to be static, as do several other members of VPRecipeBuilder.

https://github.com/llvm/llvm-project/pull/135272


More information about the llvm-commits mailing list