diff --git a/xla/service/gpu/gpu_compiler.cc b/xla/service/gpu/gpu_compiler.cc index 285ef1a2f1f3c..51652f3649b10 100755 --- a/xla/service/gpu/gpu_compiler.cc +++ b/xla/service/gpu/gpu_compiler.cc @@ -818,6 +818,7 @@ absl::Status RunOptimizationPasses( pipeline.AddPass(); pipeline.AddPass(); pipeline.AddPass(); + pipeline.AddPass(CanFoldTransposeOperandIntoDot); pipeline.AddPass(/*is_layout_sensitive=*/false); pipeline.AddPass(); }(); @@ -831,7 +832,6 @@ absl::Status RunOptimizationPasses( pipeline.AddPass(); pipeline.AddPass(layout_insensitive_algsimp_opts, gpu_version); - pipeline.AddPass(CanFoldTransposeOperandIntoDot); }(); pipeline.AddPass(