[llvm] [VPlan] Separate out logic to manage IR flags to VPIRFlags (NFC). (PR #140621)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 22 08:53:52 PDT 2025


================
@@ -1113,8 +1074,9 @@ class VPInstructionWithType : public VPInstruction {
 
   VPInstruction *clone() override {
     SmallVector<VPValue *, 2> Operands(operands());
-    auto *New = new VPInstructionWithType(
-        getOpcode(), Operands, getResultType(), getDebugLoc(), getName());
+    auto *New =
+        new VPInstructionWithType(getOpcode(), Operands, getResultType(), *this,
----------------
fhahn wrote:

I don't think so, I think the only user at the moment is WideIVStep, which won't get cloned.

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


More information about the llvm-commits mailing list