Also, factor out stack pointer manipulation to use the new 'adjustReg' helper function.
I think this is fairly straight-forward, but I'd appreciate an extra pair of eyes just to recheck I'm setting killflags etc appropriately.
Paths
| Differential D40807
[RISCV] Support stack frames and offsets up to 32-bits ClosedPublic Authored by asb on Dec 4 2017, 2:32 PM.
Details Summary Also, factor out stack pointer manipulation to use the new 'adjustReg' helper function. I think this is fairly straight-forward, but I'd appreciate an extra pair of eyes just to recheck I'm setting killflags etc appropriately.
Diff Detail
Event TimelineHerald added subscribers: jordy.potman.lists, simoncook, johnrusso, rbar. · View Herald TranscriptDec 4 2017, 2:32 PM Comment Actions There are a couple of NFC parts that need extracted here before the semantic change can be easily reviewed.
This revision now requires changes to proceed.Dec 4 2017, 7:03 PM asb edited edge metadata. asb marked 5 inline comments as done. Comment ActionsUpdate to address review comments. adjustReg is now introduced in an earlier patch, and we also add RISCVInstrInfo::movImm32 in order to reduce duplication of logic.
This revision is now accepted and ready to land.Dec 13 2017, 7:10 PM Closed by commit rL322216: [RISCV] Support stack frames and offsets up to 32-bits (authored by asb). · Explain WhyJan 10 2018, 11:55 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 129319 llvm/trunk/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/trunk/lib/Target/RISCV/RISCVInstrInfo.h
llvm/trunk/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.h
llvm/trunk/lib/Target/RISCV/RISCVRegisterInfo.cpp
llvm/trunk/test/CodeGen/RISCV/large-stack.ll
|