Back to PBT run
output.generic.mlir
"builtin.module"() ({
"llvm.func"() <{CConv = #llvm.cconv<ccc>, function_type = !llvm.func<i32 (i1, i32)>, linkage = #llvm.linkage<external>, sym_name = "weighted_then_cycle_0", unnamed_addr = 0 : i64, visibility_ = 0 : i64}> ({
^bb0(%arg4: i1, %arg5: i32):
%5 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%6 = "arith.constant"() <{value = 1 : i32}> : () -> i32
"cf.cond_br"(%arg4)[^bb1, ^bb2] <{branch_weights = array<i32: 4, 6>, operandSegmentSizes = array<i32: 1, 0, 0>}> : (i1) -> ()
^bb1: // pred: ^bb0
"cf.br"(%5)[^bb3] : (i32) -> ()
^bb2: // pred: ^bb0
"cf.br"(%6)[^bb3] : (i32) -> ()
^bb3(%7: i32): // 2 preds: ^bb1, ^bb2
%8 = "llvm.mlir.undef"() : () -> i32
%9 = "arith.constant"() <{value = 1 : i32}> : () -> i32
%10 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%11:2 = "scf.while"(%7, %8) ({
^bb0(%arg8: i32, %arg9: i32):
%12 = "arith.cmpi"(%arg8, %arg5) <{predicate = 0 : i64}> : (i32, i32) -> i1
%13:4 = "scf.if"(%12) ({
"scf.yield"(%8, %arg8, %9, %10) : (i32, i32, i32, i32) -> ()
}, {
%15 = "arith.addi"(%arg8, %6) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"scf.yield"(%15, %8, %10, %9) : (i32, i32, i32, i32) -> ()
}) : (i1) -> (i32, i32, i32, i32)
%14 = "arith.trunci"(%13#3) <{overflowFlags = #arith.overflow<none>}> : (i32) -> i1
"scf.condition"(%14, %13#0, %13#1) : (i1, i32, i32) -> ()
}, {
^bb0(%arg6: i32, %arg7: i32):
"scf.yield"(%arg6, %arg7) : (i32, i32) -> ()
}) : (i32, i32) -> (i32, i32)
"cf.br"()[^bb4] : () -> ()
^bb4: // pred: ^bb3
"llvm.return"(%11#1) : (i32) -> ()
}) : () -> ()
"llvm.func"() <{CConv = #llvm.cconv<ccc>, function_type = !llvm.func<i32 (i1, i1, i32, i32)>, linkage = #llvm.linkage<external>, sym_name = "sequential_diamonds_1", unnamed_addr = 0 : i64, visibility_ = 0 : i64}> ({
^bb0(%arg0: i1, %arg1: i1, %arg2: i32, %arg3: i32):
%0 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%1 = "arith.constant"() <{value = 2 : i32}> : () -> i32
%2 = "scf.if"(%arg0) ({
"scf.yield"(%arg2) : (i32) -> ()
}, {
"scf.yield"(%arg3) : (i32) -> ()
}) : (i1) -> i32
%3 = "scf.if"(%arg1) ({
%4 = "arith.addi"(%2, %1) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"scf.yield"(%4) : (i32) -> ()
}, {
"scf.yield"(%2) : (i32) -> ()
}) : (i1) -> i32
"llvm.return"(%3) : (i32) -> ()
}) : () -> ()
}) : () -> ()