[PATCH] D114762: [ARM] create new psuedo t2LDRLIT_ga_pcrel for stack guards

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 29 17:39:20 PST 2021


nickdesaulniers created this revision.
nickdesaulniers added reviewers: rengolin, hans, thakis, ardb, peter.smith.
Herald added subscribers: hiraditya, kristof.beyls.
nickdesaulniers requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

We can't use the existing psuedo 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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114762

Files:
  llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
  llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
  llvm/lib/Target/ARM/ARMInstrThumb2.td
  llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
  llvm/test/CodeGen/ARM/expand-pseudos.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114762.390534.patch
Type: text/x-patch
Size: 7251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211130/c202ea1a/attachment.bin>


More information about the llvm-commits mailing list