HomePhabricator

[RISCV] Support lowering FrameIndex

Description

[RISCV] Support lowering FrameIndex

Introduces the AddrFI "addressing mode", which is necessary simply because
it's not possible to write a pattern that directly matches a frameindex.

Ensure callee-saved registers are accessed relative to the stackpointer. This
is necessary as callee-saved register spills are performed before the frame
pointer is set.

Move HexagonDAGToDAGISel::isOrEquivalentToAdd to SelectionDAGISel, so we can
make use of it in the RISC-V backend.

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

Details

Committed
asbDec 11 2017, 3:53 AM
Differential Revision
D39848: [RISCV] Support lowering FrameIndex
Parents
rL320352: [ARM GlobalISel] Add tests for PKHBT and PKHTB
Branches
Unknown
Tags
Unknown