Skip to content

Commit ca0677d

Browse files
PeixinQiaokiranchandramohan
authored andcommitted
[sync] Fix CI fail for check-mlir
The test case in llvmir.mlir uses the format in llvm-main instead of that in fir-dev. The test case in test-legalize-type-conversion.mlir is added in commit 4e25ec6 incorrectly. The original PR in llvm-main is https://reviews.llvm.org/D113579. The test case is added in llvm-main by https://reviews.llvm.org/D113233.
1 parent 2a47b5a commit ca0677d

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

mlir/test/Target/LLVMIR/llvmir.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ module {
16971697
// CHECK: call void @qux
16981698

16991699
llvm.func @duplicate_block_in_switch(%cond : i32, %arg1: f32, %arg2: f32) {
1700-
llvm.switch %cond : i32, ^bb1(%arg1: f32) [
1700+
llvm.switch %cond, ^bb1(%arg1: f32) [
17011701
105: ^bb2,
17021702
108: ^bb3(%arg2: f32),
17031703
106: ^bb2
@@ -1745,7 +1745,7 @@ llvm.func @duplicate_block_in_switch(%cond : i32, %arg1: f32, %arg2: f32) {
17451745
// CHECK: br label %[[DUPLICATE]]
17461746

17471747
llvm.func @duplicate_block_with_args_in_switch(%cond : i32, %arg1: f32, %arg2: f32) {
1748-
llvm.switch %cond : i32, ^bb1(%arg1: f32) [
1748+
llvm.switch %cond, ^bb1(%arg1: f32) [
17491749
106: ^bb3(%arg1: f32),
17501750
105: ^bb2,
17511751
108: ^bb3(%arg2: f32)

mlir/test/Transforms/test-legalize-type-conversion.mlir

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,6 @@ func @test_block_argument_not_converted() {
116116

117117
// -----
118118

119-
// Make sure argument type changes aren't implicitly forwarded.
120-
func @test_signature_conversion_no_converter() {
121-
"test.signature_conversion_no_converter"() ({
122-
// expected-error@below {{failed to materialize conversion for block argument #0 that remained live after conversion}}
123-
^bb0(%arg0: f32):
124-
// expected-note@below {{see existing live user here}}
125-
"test.type_consumer"(%arg0) : (f32) -> ()
126-
"test.return"(%arg0) : (f32) -> ()
127-
}) : () -> ()
128-
return
129-
}
130-
131-
// -----
132-
133119
// CHECK-LABEL: @recursive_type_conversion
134120
func @recursive_type_conversion() {
135121
// CHECK: !test.test_rec<outer_converted_type, smpla>

0 commit comments

Comments
 (0)