[all-commits] [llvm/llvm-project] bc0810: [PowerPC] Indicate that PPC32PICGOT clobbers LR (#...

Josh Stone via All-commits all-commits at lists.llvm.org
Tue Aug 26 05:35:42 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: bc081046756492fdfb00d84f8c61b97db702424a
      https://github.com/llvm/llvm-project/commit/bc081046756492fdfb00d84f8c61b97db702424a
  Author: Josh Stone <jistone at redhat.com>
  Date:   2025-08-26 (Tue, 26 Aug 2025)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    A llvm/test/CodeGen/PowerPC/tls-picgot.ll

  Log Message:
  -----------
  [PowerPC] Indicate that PPC32PICGOT clobbers LR (#154654)

This pseudo-instruction emits a local `bl` writing LR, so that must be
saved and restored for the function to return to the right place. If
not, we'll return to the inline `.long` that the `bl` stepped over.

This fixes the `SIGILL` seen in rayon-rs/rayon#1268.

(cherry picked from commit e6ae4e689cd6511987aecd1d0678cad317ea3f33)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list