[all-commits] [llvm/llvm-project] 524d8f: [RISCV] Do not grow the stack a second time when w...

Roger Ferrer Ibáñez via All-commits all-commits at lists.llvm.org
Sat Jan 9 08:59:29 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 524d8fa9a5a5428628a21a91016a52a54a9fe838
      https://github.com/llvm/llvm-project/commit/524d8fa9a5a5428628a21a91016a52a54a9fe838
  Author: Roger Ferrer Ibanez <roger.ferrer at bsc.es>
  Date:   2021-01-09 (Sat, 09 Jan 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
    M llvm/test/CodeGen/RISCV/stack-realignment-with-variable-sized-objects.ll
    M llvm/test/CodeGen/RISCV/stack-realignment.ll

  Log Message:
  -----------
  [RISCV] Do not grow the stack a second time when we need to realign the stack

This is a first change needed to fix a crash in which the emergency
spill splot ends being out of reach. This happens when we run the
register scavenger after we have eliminated the frame indexes. The fix
for the actual crash will come in a later change.

This change removes an extra stack size increase we do in
RISCVFrameLowering::determineFrameLayout.

We don't have to change the size of the stack here as
PEI::calculateFrameObjectOffsets is already doing this with the right
size accounting the extra alignment.

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




More information about the All-commits mailing list