[all-commits] [llvm/llvm-project] 89453e: [ARM] create new pseudo t2LDRLIT_ga_pcrel for stac...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Mon Nov 29 23:46:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89453ed6f2059b5cec576fc41914def713fe38f7
      https://github.com/llvm/llvm-project/commit/89453ed6f2059b5cec576fc41914def713fe38f7
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
    M llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
    M llvm/lib/Target/ARM/ARMInstrThumb2.td
    M llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
    A llvm/test/CodeGen/ARM/expand-pseudos.ll

  Log Message:
  -----------
  [ARM] create new pseudo t2LDRLIT_ga_pcrel for stack guards

We can't use the existing pseudo ARM::tLDRLIT_ga_pcrel for loading the
stack guard for PIC code that references the GOT, since arm-pseudo may
expand this to the narrow tLDRpci rather than the wider t2LDRpci.

Create a new pseudo, t2LDRLIT_ga_pcrel, and expand it to t2LDRpci.

Fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=1270361

Reviewed By: ardb

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




More information about the All-commits mailing list