[all-commits] [llvm/llvm-project] 9757f4: [PowerPC] Don't use the S30 and S31 regs for the p...

UmeshKalappa via All-commits all-commits at lists.llvm.org
Wed Aug 10 08:31:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9757f4f2ddb76ae3ab0cc6c8768e3179ff141ee5
      https://github.com/llvm/llvm-project/commit/9757f4f2ddb76ae3ab0cc6c8768e3179ff141ee5
  Author: Umesh Kalappa <umesh.kalappa0 at gmail.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCCallingConv.td
    M llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
    A llvm/test/CodeGen/PowerPC/pr55857.ll
    M llvm/test/CodeGen/PowerPC/spe.ll

  Log Message:
  -----------
  [PowerPC] Don't use the S30 and S31 regs for the pic code

These changes to address issue
https://github.com/llvm/llvm-project/issues/55857.

Since R30/S30 is used as pointer (32 bits) for GOT Table in the ppc32 ABI,
remove it from the SPE callee save register when PIC is enabled.

This prevents emitting the SPE load and store for S30 and S31 regs.

Differential revision: https://reviews.llvm.org/D127495




More information about the All-commits mailing list