[mips][microMIPS] Delay slot filler: Replace the microMIPS JR with the JRC
authorJozef Kolek <jozef.kolek@imgtec.com>
Fri, 13 Feb 2015 17:51:27 +0000 (17:51 +0000)
committerJozef Kolek <jozef.kolek@imgtec.com>
Fri, 13 Feb 2015 17:51:27 +0000 (17:51 +0000)
commit85e08ed8a4f5b390c79227238d2ec5e1f7369dcd
treec251425294492f007ef6d72dc0358ae5d2c09959
parentd25126faae725cc2b031e9512be37aa20e383f96
[mips][microMIPS] Delay slot filler: Replace the microMIPS JR with the JRC

This patch adds functionality in MIPS delay slot filler such as if delay slot
filler have to put NOP instruction into the delay slot of microMIPS JR
instruction, then instead of emitting NOP this instruction is replaced by
compact jump instruction JRC.

Differential Revision: http://reviews.llvm.org/D7522

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsDelaySlotFiller.cpp
test/CodeGen/Mips/longbranch.ll
test/CodeGen/Mips/micromips-compact-jump.ll [new file with mode: 0644]
test/CodeGen/Mips/micromips-delay-slot-jr.ll