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

via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 20 11:48:45 PDT 2025


================
@@ -1641,12 +1649,13 @@ void VPWidenRecipe::execute(VPTransformState &State) {
 
     Value *V = Builder.CreateNAryOp(Opcode, Ops);
 
-    if (auto *VecOp = dyn_cast<Instruction>(V))
+    if (auto *VecOp = dyn_cast<Instruction>(V)) {
       setFlags(VecOp);
+      applyMetadata(V);
----------------
ayalz wrote:

```suggestion
      applyMetadata(VecOp);
```
(consistency)

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


More information about the llvm-commits mailing list