Change is straight forward. Posted for review for a second set of eyes on the generalization. In particularly, SrcReg being equal to DestReg is new with this caller. Already caught one bug due to that, anyone spot anything else?
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM (with nit) - I couldn't find or think of any problems arising from this.
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp | ||
---|---|---|
351 | We have RISCVFrameLowering::adjustReg (used elsewhere in this file) which wraps the call to RI.adjustReg. I think we should continue to use use adjustReg (for now) even though they're equivalent. Personally I'm not a huge fan of having identically-named methods across multiple files/classes. So if you wanted to remove RISCVFrameLowering::adjustReg and make everyone call the RISCVRegisterInfo one directly, I'd support that. |
We have RISCVFrameLowering::adjustReg (used elsewhere in this file) which wraps the call to RI.adjustReg. I think we should continue to use use adjustReg (for now) even though they're equivalent.
Personally I'm not a huge fan of having identically-named methods across multiple files/classes. So if you wanted to remove RISCVFrameLowering::adjustReg and make everyone call the RISCVRegisterInfo one directly, I'd support that.