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.
Differential D40807
[RISCV] Support stack frames and offsets up to 32-bits asb on Dec 4 2017, 2:32 PM. Authored by
Details 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 TimelineComment Actions There are a couple of NFC parts that need extracted here before the semantic change can be easily reviewed.
Comment Actions Update 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.
|