[mips] Modify long branch for NaCl:
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>
Thu, 5 Jun 2014 13:52:08 +0000 (13:52 +0000)
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>
Thu, 5 Jun 2014 13:52:08 +0000 (13:52 +0000)
commit2181b2319ea85629f6da3d7c0b4647dfa855fde6
treeb11a7f74215bf91706f140b9def0d1d2f55b1c30
parent44215458bd5298d9426373fc07d6492dc3d4d8cd
[mips] Modify long branch for NaCl:

  * Move the instruction that changes sp outside of the branch delay slot.
  * Bundle-align the target of indirect branch.

Differential Revision: http://llvm-reviews.chandlerc.com/D3928

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210262 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsLongBranch.cpp
test/CodeGen/Mips/longbranch.ll