diff --git a/tensorflow/compiler/mlir/xla/transforms/lhlo_legalize_to_parallel_loops.cc b/tensorflow/compiler/mlir/xla/transforms/lhlo_legalize_to_parallel_loops.cc index f2fc32f63ff..2781b955327 100644 --- a/tensorflow/compiler/mlir/xla/transforms/lhlo_legalize_to_parallel_loops.cc +++ b/tensorflow/compiler/mlir/xla/transforms/lhlo_legalize_to_parallel_loops.cc @@ -79,8 +79,9 @@ struct MappedIvs { SmallVector ivs; }; -MappedIvs MapWindowIvsToInput(ReduceWindowOp op, ArrayRef ivs, - ArrayRef window_ivs, OpBuilder* b) { +MappedIvs MapWindowIvsToInput(ReduceWindowOp op, ArrayRef ivs, + ArrayRef window_ivs, + OpBuilder* b) { MappedIvs mapped_ivs; if (!op.window_strides().hasValue()) { @@ -418,9 +419,8 @@ class ReduceWindowOpConverter auto xla_operand_type = xla_operand.getType().cast(); MappedIvs mapped_ivs = MapWindowIvsToInput( - xla_reduce_window_op, - SmallVector{output_loop.getInductionVars()}, - SmallVector{window_loop.getInductionVars()}, rewriter); + xla_reduce_window_op, output_loop.getInductionVars(), + window_loop.getInductionVars(), rewriter); auto elem_or_init = rewriter->create( loc, xla_operand_type.getElementType(), mapped_ivs.in_bounds,