The patch extends size reduction pass for MicroMIPS.
The following instructions are examined and transformed, if possible:
ADDIU instruction is transformed into 16-bit instruction ADDIUSP
ADDIU instruction is transformed into 16-bit instruction ADDIUR1SP
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Can you re-upload this diff before committing? The paths are cut short, so they're missing test/ and lib/ respectively.
Otherwise, LGTM with some nits on the comments.
Target/Mips/MicroMipsSizeReduction.cpp | ||
---|---|---|
35 ↗ | (On Diff #101384) | Nit: "Transfer opernads no 0 and no 2" -> "Transfer operands 0 and 2" |
36 ↗ | (On Diff #101384) | Nit; oppernad -> operand. |
153 ↗ | (On Diff #101384) | Nit: full stop at the end of this sentence. |
158 ↗ | (On Diff #101384) | Nit: full stop at the end of this sentence. |
259 ↗ | (On Diff #101384) | Nit: "is ADDIUSP immediate" should be "is a valid immediate for ADDIUSP.". |