[all-commits] [llvm/llvm-project] 88c1cd: [SystemZ] Use STDY/STEY/LDY/LEY for VR32/VR64 in e...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Wed Jun 8 08:10:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88c1cd86eefc2e7e597b44156f3699931d8df9fd
      https://github.com/llvm/llvm-project/commit/88c1cd86eefc2e7e597b44156f3699931d8df9fd
  Author: Jonas Paulsson <paulsson at linux.vnet.ibm.com>
  Date:   2022-06-08 (Wed, 08 Jun 2022)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
    M llvm/lib/Target/SystemZ/SystemZInstrInfo.h
    M llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
    A llvm/test/CodeGen/SystemZ/elim-frame-index-VR.ll

  Log Message:
  -----------
  [SystemZ] Use STDY/STEY/LDY/LEY for VR32/VR64 in eliminateFrameIndex().

When e.g. a VR64 register is spilled to a stack slot requiring a long
(20-bit) displacement, it is possible to use an FP opcode if the allocated
phys reg allows it. This eliminates the use of a separate LAY instruction.

Reviewed By: Ulrich Weigand

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




More information about the All-commits mailing list