[all-commits] [llvm/llvm-project] bd5250: [ARM] Make narrow push/pop in SEH prologues/epilog...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Jun 3 12:34:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd52506d24275733002da6f91c3715cde63fe2c0
      https://github.com/llvm/llvm-project/commit/bd52506d24275733002da6f91c3715cde63fe2c0
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M llvm/lib/Target/ARM/ARMFrameLowering.cpp
    M llvm/test/CodeGen/ARM/Windows/wineh-opcodes.ll
    M llvm/test/DebugInfo/COFF/ARMNT/arm-register-variables.ll

  Log Message:
  -----------
  [ARM] Make narrow push/pop in SEH prologues/epilogues where applicable

We intentionally disable Thumb2SizeReduction for SEH
prologues/epilogues, to avoid needing to guess what will happen with
the instructions in a potential future pass in frame lowering.

But for this specific case, where we know we can express the
intent with a narrow instruction, change to that instruction form
directly in frame lowering.

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


  Commit: 485432f3c85a240e3fca23aad59ca44193c7113a
      https://github.com/llvm/llvm-project/commit/485432f3c85a240e3fca23aad59ca44193c7113a
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M llvm/lib/Target/ARM/ARMFrameLowering.cpp
    M llvm/test/CodeGen/ARM/Windows/wineh-opcodes.ll

  Log Message:
  -----------
  [ARM] Make a narrow tMOVi8 where possible in SEH prologues

We intentionally disable Thumb2SizeReduction for SEH
prologues/epilogues, to avoid needing to guess what will happen with
the instructions in a potential future pass in frame lowering.

But for this specific case, where we know we can express the
intent with a narrow instruction, change to that instruction form
directly in frame lowering.

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


Compare: https://github.com/llvm/llvm-project/compare/93cb6b9c83f1...485432f3c85a


More information about the All-commits mailing list