// RUN: mlir-hlo-opt %s -split-input-file -pass-pipeline='func(canonicalize)' | FileCheck %s // CHECK-LABEL: func @fold_access // CHECK-SAME: [[ARG:%[a-zA-Z0-9]+]] func @fold_access(%arg : tensor) -> tensor { // CHECK-NEXT: return [[ARG]] %tuple = "xla_hlo.tuple"(%arg) : (tensor) -> tuple> %element = "xla_hlo.get_tuple_element"(%tuple) {index = 0 : i32} : (tuple>) -> tensor return %element : tensor }