[llvm] 3d6872b - [GlobalOpt][test] Remove br i1 undef

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 20:36:27 PDT 2022


Author: Fangrui Song
Date: 2022-06-10T20:36:22-07:00
New Revision: 3d6872b09f8eaa3687d661b557d26710b73975ab

URL: https://github.com/llvm/llvm-project/commit/3d6872b09f8eaa3687d661b557d26710b73975ab
DIFF: https://github.com/llvm/llvm-project/commit/3d6872b09f8eaa3687d661b557d26710b73975ab.diff

LOG: [GlobalOpt][test] Remove br i1 undef

Added: 
    

Modified: 
    llvm/test/Transforms/GlobalOpt/2009-06-01-RecursivePHI.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/GlobalOpt/2009-06-01-RecursivePHI.ll b/llvm/test/Transforms/GlobalOpt/2009-06-01-RecursivePHI.ll
index 30e4d4226215b..31af1b1e6e722 100644
--- a/llvm/test/Transforms/GlobalOpt/2009-06-01-RecursivePHI.ll
+++ b/llvm/test/Transforms/GlobalOpt/2009-06-01-RecursivePHI.ll
@@ -7,27 +7,27 @@ target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:1
 	%struct.s_placer_opts = type { i32, float, i32, i32, i8*, i32, i32 }
 @net = internal global %struct.s_net* null		; <%struct.s_net**> [#uses=4]
 
-define fastcc void @alloc_and_load_placement_structs(i32 %place_cost_type, i32 %num_regions, float %place_cost_exp, float*** nocapture %old_region_occ_x, float*** nocapture %old_region_occ_y) nounwind ssp {
+define fastcc void @alloc_and_load_placement_structs(i32 %place_cost_type, i32 %num_regions, float %place_cost_exp, float*** nocapture %old_region_occ_x, float*** nocapture %old_region_occ_y, i1 %c1, i1 %c2, i1 %c3, i1 %c4, i1 %c5, i1 %c6, i1 %c7, i1 %c8, i1 %c9, i1 %c10, i1 %c11, i1 %c12) nounwind ssp {
 entry:
-	br i1 undef, label %bb.i, label %my_malloc.exit
+	br i1 %c1, label %bb.i, label %my_malloc.exit
 
 bb.i:		; preds = %entry
 	unreachable
 
 my_malloc.exit:		; preds = %entry
-	br i1 undef, label %bb.i81, label %my_malloc.exit83
+	br i1 %c2, label %bb.i81, label %my_malloc.exit83
 
 bb.i81:		; preds = %my_malloc.exit
 	unreachable
 
 my_malloc.exit83:		; preds = %my_malloc.exit
-	br i1 undef, label %bb.i.i57, label %my_calloc.exit.i
+	br i1 %c3, label %bb.i.i57, label %my_calloc.exit.i
 
 bb.i.i57:		; preds = %my_malloc.exit83
 	unreachable
 
 my_calloc.exit.i:		; preds = %my_malloc.exit83
-	br i1 undef, label %bb.i4.i, label %my_calloc.exit5.i
+	br i1 %c4, label %bb.i4.i, label %my_calloc.exit5.i
 
 bb.i4.i:		; preds = %my_calloc.exit.i
 	unreachable
@@ -37,33 +37,33 @@ my_calloc.exit5.i:		; preds = %my_calloc.exit.i
 	br label %bb17.i78
 
 bb1.i61:		; preds = %bb4.preheader.i, %bb1.i61
-	br i1 undef, label %bb1.i61, label %bb5.i62
+	br i1 %c5, label %bb1.i61, label %bb5.i62
 
 bb5.i62:		; preds = %bb1.i61
-	br i1 undef, label %bb6.i64, label %bb15.preheader.i
+	br i1 %c6, label %bb6.i64, label %bb15.preheader.i
 
 bb15.preheader.i:		; preds = %bb4.preheader.i, %bb5.i62
 	br label %bb16.i77
 
 bb6.i64:		; preds = %bb5.i62
-	br i1 undef, label %bb7.i65, label %bb8.i67
+	br i1 %c7, label %bb7.i65, label %bb8.i67
 
 bb7.i65:		; preds = %bb6.i64
 	unreachable
 
 bb8.i67:		; preds = %bb6.i64
-	br i1 undef, label %bb.i1.i68, label %my_malloc.exit.i70
+	br i1 %c8, label %bb.i1.i68, label %my_malloc.exit.i70
 
 bb.i1.i68:		; preds = %bb8.i67
 	unreachable
 
 my_malloc.exit.i70:		; preds = %bb8.i67
 	%0 = load %struct.s_net*, %struct.s_net** @net, align 4		; <%struct.s_net*> [#uses=1]
-	br i1 undef, label %bb9.i71, label %bb16.i77
+	br i1 %c9, label %bb9.i71, label %bb16.i77
 
 bb9.i71:		; preds = %bb9.i71, %my_malloc.exit.i70
 	%1 = load %struct.s_net*, %struct.s_net** @net, align 4		; <%struct.s_net*> [#uses=1]
-	br i1 undef, label %bb9.i71, label %bb16.i77
+	br i1 %c10, label %bb9.i71, label %bb16.i77
 
 bb16.i77:		; preds = %bb9.i71, %my_malloc.exit.i70, %bb15.preheader.i
 	%.pre41.i.rle244 = phi %struct.s_net* [ %.pre41.i, %bb15.preheader.i ], [ %0, %my_malloc.exit.i70 ], [ %1, %bb9.i71 ]		; <%struct.s_net*> [#uses=1]
@@ -71,27 +71,27 @@ bb16.i77:		; preds = %bb9.i71, %my_malloc.exit.i70, %bb15.preheader.i
 
 bb17.i78:		; preds = %bb16.i77, %my_calloc.exit5.i
 	%.pre41.i = phi %struct.s_net* [ %.pre41.i.rle244, %bb16.i77 ], [ %.pre.i58, %my_calloc.exit5.i ]		; <%struct.s_net*> [#uses=1]
-	br i1 undef, label %bb4.preheader.i, label %alloc_and_load_unique_pin_list.exit
+	br i1 %c11, label %bb4.preheader.i, label %alloc_and_load_unique_pin_list.exit
 
 bb4.preheader.i:		; preds = %bb17.i78
-	br i1 undef, label %bb1.i61, label %bb15.preheader.i
+	br i1 %c12, label %bb1.i61, label %bb15.preheader.i
 
 alloc_and_load_unique_pin_list.exit:		; preds = %bb17.i78
 	ret void
 }
 
-define void @read_net(i8* %net_file) nounwind ssp {
+define void @read_net(i8* %net_file, i1 %c1, i1 %c2, i1 %c3, i1 %c4, i1 %c5) nounwind ssp {
 entry:
-	br i1 undef, label %bb3.us.us.i, label %bb6.preheader
+	br i1 %c1, label %bb3.us.us.i, label %bb6.preheader
 
 bb6.preheader:		; preds = %entry
-	br i1 undef, label %bb7, label %bb
+	br i1 %c2, label %bb7, label %bb
 
 bb3.us.us.i:		; preds = %entry
 	unreachable
 
 bb:		; preds = %bb6.preheader
-	br i1 undef, label %bb.i34, label %bb1.i38
+	br i1 %c3, label %bb.i34, label %bb1.i38
 
 bb.i34:		; preds = %bb
 	unreachable
@@ -100,14 +100,14 @@ bb1.i38:		; preds = %bb
 	%mallocsize = mul i64 28, undef                  ; <i64> [#uses=1]
 	%malloccall = tail call i8* @malloc(i64 %mallocsize)      ; <i8*> [#uses=1]
 	%0 = bitcast i8* %malloccall to %struct.s_net*  ; <%struct.s_net*> [#uses=1]
-	br i1 undef, label %bb.i1.i39, label %my_malloc.exit2.i
+	br i1 %c4, label %bb.i1.i39, label %my_malloc.exit2.i
 
 bb.i1.i39:		; preds = %bb1.i38
 	unreachable
 
 my_malloc.exit2.i:		; preds = %bb1.i38
 	store %struct.s_net* %0, %struct.s_net** @net, align 4
-	br i1 undef, label %bb.i7.i40, label %my_malloc.exit8.i
+	br i1 %c5, label %bb.i7.i40, label %my_malloc.exit8.i
 
 bb.i7.i40:		; preds = %my_malloc.exit2.i
 	unreachable


        


More information about the llvm-commits mailing list