diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2017-04-27 13:10:48 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2017-04-27 13:10:48 +0000 |
commit | ffef3e3c6a81a216062e1421fc27cc86bada7805 (patch) | |
tree | 3e69c43c476a8927b8ebc7cb5f8603452955da5f /llvm/lib/Target/Mips/Mips.h | |
parent | 742c5fce671c38d9b11ff0134101f8546940f967 (diff) | |
download | bcm5719-llvm-ffef3e3c6a81a216062e1421fc27cc86bada7805.tar.gz bcm5719-llvm-ffef3e3c6a81a216062e1421fc27cc86bada7805.zip |
[mips][microMIPS] Adding code size reduction pass for MicroMIPS
Author: milena.vujosevic.janicic
Reviewers: sdardis
The code implements size reduction pass for MicroMIPS.
Load and store instructions are examined and transformed, if possible.
lw32 instruction is transformed into 16-bit instruction lwsp
sw32 instruction is transformed into 16-bit instruction swsp
Arithmetic instrcutions are examined and transformed, if possible.
addu32 instruction is transformed into 16-bit instruction addu16
subu32 instruction is transformed into 16-bit instruction subu16
Differential Revision: https://reviews.llvm.org/D15144
llvm-svn: 301540
Diffstat (limited to 'llvm/lib/Target/Mips/Mips.h')
-rw-r--r-- | llvm/lib/Target/Mips/Mips.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/Mips.h b/llvm/lib/Target/Mips/Mips.h index d9faf3325ca..7553f3972f5 100644 --- a/llvm/lib/Target/Mips/Mips.h +++ b/llvm/lib/Target/Mips/Mips.h @@ -32,6 +32,7 @@ namespace llvm { FunctionPass *createMipsHazardSchedule(); FunctionPass *createMipsLongBranchPass(MipsTargetMachine &TM); FunctionPass *createMipsConstantIslandPass(); + FunctionPass *createMicroMipsSizeReductionPass(); } // end namespace llvm; #endif |