[llvm] 94ac8f3 - [BranchRelaxation] Fix test for duplicate branch instruction

Anshil Gandhi via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 14 11:21:54 PDT 2022


Author: Anshil Gandhi
Date: 2022-10-14T12:21:26-06:00
New Revision: 94ac8f3a8cf9d4101348f4f6589a71855cc5f78f

URL: https://github.com/llvm/llvm-project/commit/94ac8f3a8cf9d4101348f4f6589a71855cc5f78f
DIFF: https://github.com/llvm/llvm-project/commit/94ac8f3a8cf9d4101348f4f6589a71855cc5f78f.diff

LOG: [BranchRelaxation] Fix test for duplicate branch instruction

This patch is a follow up for D134557, inserting a check
for a duplicate unconditional branch to fall through.

Differential Revision: https://reviews.llvm.org/D135975

Added: 
    

Modified: 
    llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir b/llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir
index bac39bd06ffa2..4c0a69c7e6a14 100644
--- a/llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir
+++ b/llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir
@@ -97,6 +97,7 @@ body:             |
   ; CHECK-NEXT:   $sgpr9 = S_MOV_B32 killed $sgpr10
   ; CHECK-NEXT:   $sgpr10 = S_MOV_B32 killed $sgpr11
   ; CHECK-NEXT:   S_BRANCH %bb.4
+  ; CHECK-NOT:    S_BRANCH %bb.4
   ; CHECK-NEXT: {{  $}}
   ; CHECK-NEXT: bb.6:
   ; CHECK-NEXT:   successors: %bb.4(0x80000000)
@@ -164,6 +165,7 @@ body:             |
     $sgpr8 = S_MOV_B32 killed $sgpr9
     $sgpr9 = S_MOV_B32 killed $sgpr10
     $sgpr10 = S_MOV_B32 killed $sgpr11
+    S_BRANCH %bb.4
 
   bb.4:
     liveins: $vcc_hi, $vcc_lo, $sgpr4, $sgpr5, $sgpr6, $sgpr7, $sgpr8, $sgpr9, $sgpr10, $sgpr11, $sgpr12, $sgpr13, $sgpr14, $sgpr15, $sgpr16, $sgpr17, $sgpr18, $sgpr19, $sgpr20, $sgpr21, $sgpr22, $sgpr23, $sgpr24, $sgpr25, $sgpr26, $sgpr27, $sgpr28, $sgpr29, $sgpr30, $sgpr31, $sgpr34, $sgpr35, $sgpr36, $sgpr37, $sgpr38, $sgpr39, $sgpr40, $sgpr41, $sgpr42, $sgpr43, $sgpr44, $sgpr45, $sgpr46, $sgpr47, $sgpr48, $sgpr49, $sgpr50, $sgpr51, $sgpr52, $sgpr53, $sgpr54, $sgpr55, $sgpr56, $sgpr57, $sgpr58, $sgpr59, $sgpr60, $sgpr61, $sgpr62, $sgpr63, $sgpr64, $sgpr65, $sgpr66, $sgpr67, $sgpr68, $sgpr69, $sgpr70, $sgpr71, $sgpr72, $sgpr73, $sgpr74, $sgpr75, $sgpr76, $sgpr77, $sgpr78, $sgpr79, $sgpr80, $sgpr81, $sgpr82, $sgpr83, $sgpr84, $sgpr85, $sgpr86, $sgpr87, $sgpr88, $sgpr89, $sgpr90, $sgpr91, $sgpr92, $sgpr93, $sgpr94, $sgpr95, $sgpr96, $sgpr97, $sgpr98, $sgpr99, $sgpr100, $sgpr101, $vgpr0, $vgpr1, $sgpr0, $sgpr1, $sgpr2, $sgpr3, $sgpr32, $sgpr33, $sgpr0_sgpr1_sgpr2_sgpr3


        


More information about the llvm-commits mailing list