[mips] Do not place users of $ra in the delay slot of call instructions.
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 14 May 2015 13:17:56 +0000 (13:17 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 14 May 2015 13:17:56 +0000 (13:17 +0000)
commit2f29498a6bbce4fb7d9a77698f7a650352b60346
treebce7d968762679c495aba8452f79f90f46bc1d72
parent9ce56af1eb84f5f87c7ca2beb2caa7b65b11257e
[mips] Do not place users of $ra in the delay slot of call instructions.

Summary:
When we are trying to fill the delay slot of a call instruction, we must avoid
filler instructions that use the $ra register. This fixes the test
MultiSource/Applications/JM/lencod when we enable the forward delay slot filler.

Reviewers: dsanders

Subscribers: llvm-commits

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

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