[llvm] [VPlan] Use VPInstructionWithType for uniform casts. (PR #140623)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 02:55:20 PDT 2025


================
@@ -1051,7 +1054,8 @@ class VPInstructionWithType : public VPInstruction {
   VPInstructionWithType(unsigned Opcode, ArrayRef<VPValue *> Operands,
                         Type *ResultTy, const VPIRFlags &Flags, DebugLoc DL,
                         const Twine &Name = "")
-      : VPInstruction(Opcode, Operands, Flags, DL, Name), ResultTy(ResultTy) {}
+      : VPInstruction(Opcode, Operands, Flags, DL, Name, true),
----------------
lukel97 wrote:

Does this mean that all VPInstructionWithTypes are single scalars? Is that true for WideIVSteps/StepVector?

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


More information about the llvm-commits mailing list