Skip to content

Commit dc0e8af

Browse files
authored
Update ir.c
1 parent c5787ec commit dc0e8af

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

mlir/test/CAPI/ir.c

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,19 +2445,15 @@ int testBlockPredecessorsSuccessors(MlirContext ctx) {
24452445
fprintf(stderr, "@testBlockPredecessorsSuccessors\n");
24462446

24472447
const char *moduleString = R"""(
2448-
#loc2 = loc("arg1")
2449-
#loc3 = loc("middle")
2450-
#loc4 = loc("successor")
24512448
module {
2452-
func.func @test(%arg0: i32 loc("arg0"), %arg1: i16 loc("arg1")) {
2453-
cf.br ^bb1(%arg1 : i16) loc(#loc)
2454-
^bb1(%0: i16 loc("middle")): // pred: ^bb0
2455-
cf.br ^bb2(%arg0 : i32) loc(#loc)
2456-
^bb2(%1: i32 loc("successor")): // pred: ^bb1
2457-
return loc(#loc)
2458-
} loc(#loc)
2459-
} loc(#loc)
2460-
#loc = loc(unknown)
2449+
func.func @test(%arg0: i32, %arg1: i16) {
2450+
cf.br ^bb1(%arg1 : i16)
2451+
^bb1(%0: i16): // pred: ^bb0
2452+
cf.br ^bb2(%arg0 : i32)
2453+
^bb2(%1: i32): // pred: ^bb1
2454+
return
2455+
}
2456+
}
24612457
)""";
24622458

24632459
MlirModule module =

0 commit comments

Comments
 (0)