File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -579,7 +579,6 @@ void RemoveDeadValues::runOnOperation() {
579
579
if (op == module)
580
580
return WalkResult::advance ();
581
581
if (isa<BranchOpInterface>(op) ||
582
- (isa<SymbolOpInterface>(op) && !isa<FunctionOpInterface>(op)) ||
583
582
(isa<SymbolUserOpInterface>(op) && !isa<CallOpInterface>(op))) {
584
583
op->emitError () << " cannot optimize an IR with non-function symbol ops, "
585
584
" non-call symbol user ops or branch ops\n " ;
Original file line number Diff line number Diff line change 1
1
// RUN: mlir-opt %s -remove-dead-values -split-input-file -verify-diagnostics | FileCheck %s
2
2
3
- // The IR remains untouched because of the presence of a non-function-like
4
- // symbol op inside the module (const @__dont_touch_unacceptable_ir).
3
+ // The IR is updated regardless of memref.global private constant
5
4
//
6
5
module {
7
- // expected-error @+1 {{cannot optimize an IR with non-function symbol ops, non-call symbol user ops or branch ops}}
8
6
memref.global " private" constant @__dont_touch_unacceptable_ir : memref <i32 > = dense <0 >
9
7
func.func @main (%arg0: i32 ) -> i32 {
8
+ %0 = tensor.empty () : tensor <10 xbf16 >
9
+ // CHECK-NOT: tensor.empty
10
10
return %arg0 : i32
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments