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
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 | Nit: "Transfer opernads no 0 and no 2" -> "Transfer operands 0 and 2" | |
36 | Nit; oppernad -> operand. | |
153 | Nit: full stop at the end of this sentence. | |
158 | Nit: full stop at the end of this sentence. | |
259 | Nit: "is ADDIUSP immediate" should be "is a valid immediate for ADDIUSP.". |
Nit: "Transfer opernads no 0 and no 2" -> "Transfer operands 0 and 2"