summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir
diff options
context:
space:
mode:
authorAleksandar Beserminji <Aleksandar.Beserminji@mips.com>2018-05-21 10:20:02 +0000
committerAleksandar Beserminji <Aleksandar.Beserminji@mips.com>2018-05-21 10:20:02 +0000
commitde7be5e46f9eb3433fab194897859291e3dbc98f (patch)
tree07ff1d0e3e834115e6eb817f15430b5e21d4e8da /llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir
parentbecc204633c2f4b67df1a2f8892116777be8c575 (diff)
downloadbcm5719-llvm-de7be5e46f9eb3433fab194897859291e3dbc98f.tar.gz
bcm5719-llvm-de7be5e46f9eb3433fab194897859291e3dbc98f.zip
[mips] Merge MipsLongBranch and MipsHazardSchedule passes
MipsLongBranchPass and MipsHazardSchedule passes are joined to one pass because of mutual conflict. When MipsHazardSchedule inserts 'nop's, it potentially breaks some jumps, so they have to be expanded to long branches. When some branch is expanded to long branch, it potentially creates a hazard situation, which should be fixed by adding nops. New pass is called MipsBranchExpansion, it combines these two passes, and runs them alternately until one of them reports no changes were made. Differential Revision: https://reviews.llvm.org/D46641 llvm-svn: 332834
Diffstat (limited to 'llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir')
-rw-r--r--llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir b/llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir
index 1fd7b4995de..67e5110298e 100644
--- a/llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir
+++ b/llvm/test/CodeGen/Mips/longbranch/branch-limits-msa.mir
@@ -1,6 +1,6 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
-# RUN: llc -mtriple=mips64-mti-linux-gnu -mcpu=mips64r5 -mattr=+fp64,+msa %s -o - -start-before mips-delay-slot-filler -stop-after mips-long-branch | FileCheck %s --check-prefix=MSA
-# RUN: llc -mtriple=mips64-mti-linux-gnu -mcpu=mips64r5 -mattr=+fp64,+msa %s -o - -start-before mips-delay-slot-filler -stop-after mips-long-branch -relocation-model=pic | FileCheck %s --check-prefix=PIC
+# RUN: llc -mtriple=mips64-mti-linux-gnu -mcpu=mips64r5 -mattr=+fp64,+msa %s -o - -start-before mips-delay-slot-filler -stop-after mips-branch-expansion | FileCheck %s --check-prefix=MSA
+# RUN: llc -mtriple=mips64-mti-linux-gnu -mcpu=mips64r5 -mattr=+fp64,+msa %s -o - -start-before mips-delay-slot-filler -stop-after mips-branch-expansion -relocation-model=pic | FileCheck %s --check-prefix=PIC
# Test the long branch expansion of various branches
OpenPOWER on IntegriCloud