diff options
author | Simon Dardis <simon.dardis@imgtec.com> | 2016-08-18 13:22:43 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@imgtec.com> | 2016-08-18 13:22:43 +0000 |
commit | ea3431598e552fdfb7cd69f92fecc661d64fa2b1 (patch) | |
tree | 7d3f9520e0b820906b5f64c905f34612d766a221 /llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp | |
parent | 83f6bbc1546fbc7736efb8c13d2590f5c3fd3647 (diff) | |
download | bcm5719-llvm-ea3431598e552fdfb7cd69f92fecc661d64fa2b1.tar.gz bcm5719-llvm-ea3431598e552fdfb7cd69f92fecc661d64fa2b1.zip |
[mips] Correct tail call encoding for MIPSR6
r277708 enabled tails calls for MIPS but used the 'jr' instruction when the
jump target was held in a register. For MIPSR6, 'jalr $zero, $reg' should
have been used. Additionally, add missing patterns for external and global
symbols for tail calls.
Reviewers: dsanders, vkalintiris
Differential Review: https://reviews.llvm.org/D23301
llvm-svn: 279064
Diffstat (limited to 'llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp index c473c6ccd06..eb0d3142bec 100644 --- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp +++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp @@ -560,7 +560,7 @@ static int getEquivalentCallShort(int Opcode) { return Mips::JALRS16_MM; case Mips::TAILCALL_MM: llvm_unreachable("Attempting to shorten the TAILCALL_MM pseudo!"); - case Mips::TAILCALLREG_MM: + case Mips::TAILCALLREG: return Mips::JR16_MM; default: llvm_unreachable("Unexpected call instruction for microMIPS."); |