Part 1 of 3 patches that completes very long conditional branches
authorReed Kotler <rkotler@mips.com>
Fri, 29 Nov 2013 22:32:56 +0000 (22:32 +0000)
committerReed Kotler <rkotler@mips.com>
Fri, 29 Nov 2013 22:32:56 +0000 (22:32 +0000)
commitdcb0422f25231f1b375943a0956c46b01c900375
treef857cde46edb0d9de2d1f9cd7be89c8b98e32ae0
parenteb47ca45610710b433840b449f755269e47b4d68
Part 1 of 3 patches that completes very long conditional branches
in constant islands for Mips16. We introdcuce JalB16 as a synomnym
for Jal16. It makes it easier to read and is also necessary because
Jal16 is a call instruction but JalB16 is being used as a branch.
Various parts of LLVM will not work properly even in this late stage of
the backend if we use what was declared as a call instruction to function
as a branch. For one, basic block labels may not get emitted in some
situations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195968 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips16InstrInfo.td
lib/Target/Mips/MipsConstantIslandPass.cpp
test/CodeGen/Mips/lcb3c.ll [new file with mode: 0644]