File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
mlir/test/Conversion/Normalize Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11// RUN: mlir-opt %s --normalize --mlir-use-nameloc-as-prefix 2>&1 | FileCheck %s
22
33// CHECK-LABEL: module {
4- // CHECK: func.func @test (%[[ARG0:.*]]: memref<?xi32>, %[[ARG1:.*]]: i32) {
4+ // CHECK: func.func @infinte_loop (%[[ARG0:.*]]: memref<?xi32>, %[[ARG1:.*]]: i32) {
55// CHECK: %vl15969$e5677$ = arith.constant 1 : i32
66// CHECK: %vl15390$funcArg1-vl15969$ = arith.addi %[[ARG1:.*]], %vl15969$e5677$ : i32
77// CHECK: cf.br ^bb1(%vl15390$funcArg1-vl15969$, %vl15390$funcArg1-vl15969$ : i32, i32)
101101// CHECK: cf.br ^bb1(%op15672$op27844-vl15894$, %vl15894$blockArg1-vl22288$_69 : i32, i32)
102102// CHECK: }
103103// CHECK: }
104- func.func @test (%arg0: memref <?xi32 >, %arg1: i32 ) {
104+ func.func @infinte_loop (%arg0: memref <?xi32 >, %arg1: i32 ) {
105105 %c1 = arith.constant 1 : i32
106106 %a = arith.addi %arg1 , %c1 : i32
107107 cf.br ^bb1 (%a , %a : i32 , i32 )
Original file line number Diff line number Diff line change 11// RUN: mlir-opt %s --normalize --mlir-use-nameloc-as-prefix 2>&1 | FileCheck %s
22
3- // CHECK-LABEL: func.func @bar (
3+ // CHECK-LABEL: func.func @reorder (
44// CHECK-SAME: %[[ARG0:.*]]: i32) -> i32 {
55// CHECK: %vl14084$51356$ = arith.constant 2 : i32
66// CHECK: %vl15831$funcArg0-vl14084$ = arith.addi %[[ARG0]], %vl14084$51356$ : i32
1010// CHECK: %op27844$op27844-vl14084$ = arith.addi %op27844$vl14084-vl15831$, %vl14084$4c6ac$ : i32
1111// CHECK: return %op27844$op27844-vl14084$ : i32
1212// CHECK: }
13- func.func @bar (%a0: i32 ) -> i32 {
13+ func.func @reorder (%a0: i32 ) -> i32 {
1414 %c2 = arith.constant 2 : i32
1515 %c6 = arith.constant 6 : i32
1616 %c8 = arith.constant 8 : i32
You can’t perform that action at this time.
0 commit comments