Skip to content

Commit cbd48e0

Browse files
committed
CR 3 and removed update of a test, cause moved to another PR
1 parent 5b80374 commit cbd48e0

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

mlir/lib/Dialect/SCF/IR/SCF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ struct ExecuteRegionForwardingEliminator
334334
opResultsToReplaceWithExternalValues.push_back(op.getResult(index));
335335
}
336336
}
337-
// No yeilded external values - nothing to do.
337+
// No yielded external values - nothing to do.
338338
if (externalValues.empty())
339339
return failure();
340340

mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize.mlir

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,20 +380,18 @@ func.func private @execute_region_test(%t1 : tensor<?xf32>)
380380
// -----
381381

382382
// CHECK-LABEL: func @no_inline_execute_region_not_canonicalized
383-
module {
384-
func.func private @foo()->()
385-
func.func @no_inline_execute_region_not_canonicalized() {
386-
%c = arith.constant 42 : i32
387-
// CHECK: scf.execute_region
388-
// CHECK-SAME: no_inline
389-
%v = scf.execute_region -> i32 no_inline {
390-
func.call @foo():()->()
391-
scf.yield %c : i32
392-
}
393-
// CHECK: return
394-
return
383+
func.func @no_inline_execute_region_not_canonicalized() {
384+
%c = arith.constant 42 : i32
385+
// CHECK: scf.execute_region
386+
// CHECK-SAME: no_inline
387+
%v = scf.execute_region -> i32 no_inline {
388+
scf.yield %c : i32
395389
}
390+
// CHECK: return
391+
return
396392
}
393+
394+
397395
// -----
398396

399397
// CHECK: func private @some_external_func(memref<?xf32, strided<[?], offset: ?>>)

0 commit comments

Comments
 (0)