// RUN: npcomp-opt -canonicalize <%s | FileCheck %s --dump-input=fail // CHECK-LABEL: func @tensor_to_memref func @tensor_to_memref_fold(%arg0: memref) -> memref { // CHECK-NEXT: return %arg0 : memref %0 = refback.memref_to_tensor %arg0 : memref -> tensor %1 = refback.tensor_to_memref %0 : tensor -> memref return %1 : memref }