[llvm] [PowerPC] Add special handling for arguments that are smaller than pointer size. (PR #119003)

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 12:47:06 PST 2024


================
@@ -7291,7 +7294,21 @@ SDValue PPCTargetLowering::LowerFormalArguments_AIX(
       SDValue FIN = DAG.getFrameIndex(FI, PtrVT);
       SDValue ArgValue =
           DAG.getLoad(ValVT, dl, Chain, FIN, MachinePointerInfo());
-      InVals.push_back(ArgValue);
+
+      // While the ABI specifies that the higher bits of the load should be
+      // zeroed out or sign extended this is not always the case. For safety
----------------
hubert-reinterpretcast wrote:

Minor nit: Missing comma before "this is".
Also, this line exceeds 80 characters.

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


More information about the llvm-commits mailing list