[llvm] [SystemZ] XPLINK64: emit narrow sign/zero-extend instructions for sub-i32 formal args (PR #206833)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 08:13:06 PDT 2026


================
@@ -2152,8 +2153,23 @@ SDValue SystemZTargetLowering::LowerFormalArguments(
           assert(PartOffset && "Offset should be non-zero.");
         }
       }
-    } else
-      InVals.push_back(convertLocVTToValVT(DAG, DL, VA, Chain, ArgValue));
+    } else {
+      SDValue Val = convertLocVTToValVT(DAG, DL, VA, Chain, ArgValue);
----------------
uweigand wrote:

I don't see why any of this code is necessary.  If we get the proper `AExt` marker, then common code should do the right thing already.

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


More information about the llvm-commits mailing list