diff options
author | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2015-04-17 12:01:02 +0000 |
---|---|---|
committer | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2015-04-17 12:01:02 +0000 |
commit | bb60cfb5c4c9ad62c896e2a6431fe4efb0f53b10 (patch) | |
tree | 91eed859c6372fd1158ef2715dbf1e0ee81cfb8c /llvm/test/CodeGen/Mips/delay-slot-kill.ll | |
parent | 0575c5de68ef09d4ec22d16943affa6f9b0c36a9 (diff) | |
download | bcm5719-llvm-bb60cfb5c4c9ad62c896e2a6431fe4efb0f53b10.tar.gz bcm5719-llvm-bb60cfb5c4c9ad62c896e2a6431fe4efb0f53b10.zip |
[mips] Teach the delay slot filler to remove needless KILL instructions.
Summary:
Previously, the presence of KILL instructions would block valid candidates
from filling a specific delay slot. With the elimination of the KILL
instructions, in the appropriate range, we are able to fill more slots and
keep the information from future def/use analysis consistent.
Reviewers: dsanders
Reviewed By: dsanders
Subscribers: hfinkel, llvm-commits
Differential Revision: http://reviews.llvm.org/D7724
llvm-svn: 235183
Diffstat (limited to 'llvm/test/CodeGen/Mips/delay-slot-kill.ll')
-rw-r--r-- | llvm/test/CodeGen/Mips/delay-slot-kill.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/delay-slot-kill.ll b/llvm/test/CodeGen/Mips/delay-slot-kill.ll new file mode 100644 index 00000000000..57b630303c2 --- /dev/null +++ b/llvm/test/CodeGen/Mips/delay-slot-kill.ll @@ -0,0 +1,14 @@ +; RUN: llc < %s -march=mips64 -mcpu=mips3 | FileCheck %s + +; Currently, the following IR assembly generates a KILL instruction between +; the bitwise-and instruction and the return instruction. We verify that the +; delay slot filler ignores such KILL instructions by filling the slot of the +; return instruction properly. +define signext i32 @f1(i32 signext %a, i32 signext %b) { +entry: + ; CHECK: jr $ra + ; CHECK-NEXT: and $2, $4, $5 + + %r = and i32 %a, %b + ret i32 %r +} |