diff --git a/xla/hlo/experimental/auto_sharding/BUILD b/xla/hlo/experimental/auto_sharding/BUILD index 1bab84bf5f2fa..5b559373ee327 100644 --- a/xla/hlo/experimental/auto_sharding/BUILD +++ b/xla/hlo/experimental/auto_sharding/BUILD @@ -52,6 +52,9 @@ cc_library( "//xla/hlo/ir:hlo", "//xla/hlo/pass:hlo_pass", "//xla/hlo/transforms:hlo_constant_splitter", + "//xla/hlo/transforms:hlo_dce", + "//xla/hlo/transforms:hlo_memory_scheduler", + "//xla/hlo/transforms:optimize_input_output_buffer_alias", "//xla/hlo/utils:hlo_live_range", "//xla/hlo/utils:hlo_sharding_util", "//xla/service:buffer_value", @@ -62,10 +65,7 @@ cc_library( "//xla/service:hlo_alias_analysis", "//xla/service:hlo_buffer", "//xla/service:hlo_cost_analysis", - "//xla/service:hlo_dce", - "//xla/service:hlo_memory_scheduler", "//xla/service:hlo_value", - "//xla/service:optimize_input_output_buffer_alias", "//xla/service:sharding_propagation", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/container:btree", @@ -385,11 +385,11 @@ xla_cc_test( "//xla/hlo/ir:hlo", "//xla/hlo/parser:hlo_parser", "//xla/hlo/testlib:verified_hlo_module", + "//xla/hlo/transforms:hlo_memory_scheduler", "//xla/hlo/utils:hlo_live_range", "//xla/hlo/utils:hlo_matchers", "//xla/service:buffer_value", "//xla/service:hlo_alias_analysis", - "//xla/service:hlo_memory_scheduler", "//xla/service:hlo_value", "//xla/tests:hlo_test_base", "//xla/tests:xla_internal_test_main", diff --git a/xla/hlo/experimental/auto_sharding/auto_sharding.cc b/xla/hlo/experimental/auto_sharding/auto_sharding.cc index a7ee9821c4ad8..169acb6c8ec2d 100644 --- a/xla/hlo/experimental/auto_sharding/auto_sharding.cc +++ b/xla/hlo/experimental/auto_sharding/auto_sharding.cc @@ -69,6 +69,9 @@ limitations under the License. #include "xla/hlo/ir/hlo_schedule.h" #include "xla/hlo/ir/hlo_sharding.h" #include "xla/hlo/transforms/simplifiers/hlo_constant_splitter.h" +#include "xla/hlo/transforms/simplifiers/hlo_dce.h" +#include "xla/hlo/transforms/simplifiers/hlo_memory_scheduler.h" +#include "xla/hlo/transforms/simplifiers/optimize_input_output_buffer_alias.h" #include "xla/hlo/utils/hlo_live_range.h" #include "xla/hlo/utils/hlo_sharding_util.h" #include "xla/service/buffer_value.h" @@ -78,10 +81,7 @@ limitations under the License. #include "xla/service/hlo_alias_analysis.h" #include "xla/service/hlo_buffer.h" #include "xla/service/hlo_cost_analysis.h" -#include "xla/service/hlo_dce.h" -#include "xla/service/hlo_memory_scheduler.h" #include "xla/service/hlo_value.h" -#include "xla/service/optimize_input_output_buffer_alias.h" #include "xla/service/sharding_propagation.h" #include "xla/shape.h" #include "xla/shape_tree.h" diff --git a/xla/hlo/experimental/auto_sharding/auto_sharding_test.cc b/xla/hlo/experimental/auto_sharding/auto_sharding_test.cc index 11c8b74c83cf8..93e718dd62fd7 100644 --- a/xla/hlo/experimental/auto_sharding/auto_sharding_test.cc +++ b/xla/hlo/experimental/auto_sharding/auto_sharding_test.cc @@ -44,11 +44,11 @@ limitations under the License. #include "xla/hlo/ir/hlo_sharding.h" #include "xla/hlo/parser/hlo_parser.h" #include "xla/hlo/testlib/verified_hlo_module.h" +#include "xla/hlo/transforms/simplifiers/hlo_memory_scheduler.h" #include "xla/hlo/utils/hlo_live_range.h" #include "xla/hlo/utils/hlo_matchers.h" #include "xla/service/buffer_value.h" #include "xla/service/hlo_alias_analysis.h" -#include "xla/service/hlo_memory_scheduler.h" #include "xla/service/hlo_value.h" #include "xla/tests/hlo_test_base.h" #include "xla/tsl/lib/core/status_test_util.h"