[SystemZ][z/OS] Correct value of length/4 of params field in PPA1.
authorNeumann Hon <neumann.hon@ibm.com>
Wed, 14 Jun 2023 17:37:46 +0000 (13:37 -0400)
committerNeumann Hon <neumann.hon@ibm.com>
Wed, 14 Jun 2023 17:37:46 +0000 (13:37 -0400)
commit8a7a2da18f9add7fb58fe707e4f0256e3abeb8fa
tree21921d6f6abb3a80106e56456f67fb90033c1fb7
parent261d9e58d42efe4cfc34c5dd16b3001e4ffd39d6
[SystemZ][z/OS] Correct value of length/4 of params field in PPA1.

The Length/4 of Params field in the PPA1 ought to be the length of the parameters for the current function. Currently we are storing the length of the parameter area in the current function's stack frame, which represents the length of the params of the longest callee in the current function.

Differential Revision: https://reviews.llvm.org/D152920

Reviewed By: uweigand
llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
llvm/test/CodeGen/SystemZ/zos-prologue-epilog.ll