[PATCH] D6229: [mips][microMIPS] Use swm32/lwm32 instructions in function prologue/epilogue
Simon Atanasyan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 12 13:43:11 PDT 2018
atanasyan added inline comments.
================
Comment at: lib/Target/Mips/MipsSEFrameLowering.cpp:683
+ const TargetRegisterInfo *TRI) const {
+ if (STI.inMicroMipsMode()) {
+ unsigned sregs[] = {Mips::S0, Mips::S1, Mips::S2, Mips::S3, Mips::S4,
----------------
Use early-return:
```
if (!STI.inMicroMipsMode())
return false;
```
================
Comment at: lib/Target/Mips/MipsSEFrameLowering.cpp:707
+ if (FirstIndx >= 0 && (Multi == false || i == 0)) {
+ // Emit SWM instruction.
+ int Count = FirstIndx - i;
----------------
Replace SWM by LWM.
https://reviews.llvm.org/D6229
More information about the llvm-commits
mailing list