[llvm] [VPlan] Populate and use VPIRFlags from initial VPInstruction. (PR #168450)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 03:40:15 PST 2025


================
@@ -255,13 +255,14 @@ void PlainCFGBuilder::createVPInstructionsForVPBB(VPBasicBlock *VPBB,
       if (auto *CI = dyn_cast<CastInst>(Inst)) {
         NewR = VPIRBuilder.createScalarCast(CI->getOpcode(), VPOperands[0],
                                             CI->getType(), CI->getDebugLoc(),
-                                            {}, MD);
+                                            VPIRFlags(*CI), MD);
----------------
lukel97 wrote:

Oh I see that e.g. `VPInstructionWithType::execute` doesn't set the IR flags etc. I presume we should eventually do that in a separate PR?

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


More information about the llvm-commits mailing list