[PATCH] D34511: [mips][microMIPS] Extending size reduction pass with ADDIUSP and ADDIUR1SP
Milena Vujosevic Janicic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 06:25:26 PDT 2017
milena.vujosevic.janicic created this revision.
Herald added a subscriber: arichardson.
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
Function InRange is changed to avoid left shifting of negative values, since
that caused some sanitizer tests to fail (so the previous patch
https://reviews.llvm.org/D33887 was reverted).
https://reviews.llvm.org/D34511
Files:
lib/Target/Mips/MicroMipsSizeReduction.cpp
test/CodeGen/Mips/micromips-sizereduction/micromips-addiur1sp-addiusp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34511.103564.patch
Type: text/x-patch
Size: 8567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170622/8fb9a665/attachment.bin>
More information about the llvm-commits
mailing list