[all-commits] [llvm/llvm-project] d0022a: [PowerPC] copy byval parameter to caller's stack w...

Chen Zheng via All-commits all-commits at lists.llvm.org
Wed Dec 8 17:01:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0022a7250fa6c32b91016698505d964123759a4
      https://github.com/llvm/llvm-project/commit/d0022a7250fa6c32b91016698505d964123759a4
  Author: Chen Zheng <czhengsz at cn.ibm.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/byval.ll
    M llvm/test/CodeGen/PowerPC/elf64-byval-cc.ll
    M llvm/test/CodeGen/PowerPC/ppc64-byval-align.ll

  Log Message:
  -----------
  [PowerPC] copy byval parameter to caller's stack when needed

Now we won't copy the byval parameter (bigger than 8 bytes) to
caller's parameter save area. Instead, we will only copy the
byval parameter when it can not be passed entirely in registers
which means we have to use parameter save area according to the
64 bit SVR4 ABI.

Reviewed By: jsji

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




More information about the All-commits mailing list