[llvm] [VPlan] Allow a VPRecipeValue to carry a widened result type (NFC). (PR #228251)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 05:01:03 PDT 2026


================
@@ -1464,7 +1464,7 @@ class LLVM_ABI_FOR_TEST VPInstruction : public VPRecipeWithIRFlags,
   VP_CLASSOF_IMPL(VPRecipeBase::VPInstructionSC)
 
   VPInstruction *clone() override {
-    return cloneWithOperands(operands(), getScalarType());
+    return cloneWithOperands(operands(), getResultType());
----------------
artagnon wrote:

Are corresponding fixes to other widens such as WidenCast and WidenIntrinsic missing?

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


More information about the llvm-commits mailing list