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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun May 3 14:09:06 PDT 2026


================
@@ -177,8 +177,8 @@ class VPBuilder {
                               Type *ResultTy, const VPIRFlags &Flags = {},
                               DebugLoc DL = DebugLoc::getUnknown(),
                               const Twine &Name = "") {
-    return tryInsertInstruction(
-        new VPInstructionWithType(Opcode, Operands, ResultTy, Flags, DL, Name));
+    return tryInsertInstruction(new VPInstructionWithType(
+        Opcode, Operands, ResultTy, Flags, DL, /*IsSingleScalar=*/false, Name));
----------------
fhahn wrote:

For now I removed the flag as it is not needed in the latest commit.

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


More information about the llvm-commits mailing list