[SystemZ][z/OS] Correct value of length/4 of params field in PPA1.
authorNeumann Hon <neumann.hon@ibm.com>
Wed, 14 Jun 2023 17:20:45 +0000 (13:20 -0400)
committerNeumann Hon <neumann.hon@ibm.com>
Wed, 14 Jun 2023 17:20:45 +0000 (13:20 -0400)
commite0f7b0e0f704dc3759925602e474b9e669270fcb
tree75142971c1c7b3f758c020aa33ae04281c1ef431
parente0db1e8bdea101e53e3097fb5c099932c5fa82b4
[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/D119049

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