diff --git a/third_party/intel/backend/compiler.py b/third_party/intel/backend/compiler.py index c9fa3d69e4..61c57e1143 100644 --- a/third_party/intel/backend/compiler.py +++ b/third_party/intel/backend/compiler.py @@ -267,8 +267,7 @@ def make_ttgir(mod, metadata, opt, properties): passes.common.add_cse(pm) passes.ttgpuir.add_prefetch(pm) passes.ttgpuir.add_optimize_dot_operands(pm, True) - if os.getenv("TRITON_INTEL_OPTIMIZE_REDUCTION_LOCALITY", "0") == "1": - intel.passes.ttgpuir.add_optimize_reduction_locality(pm) + intel.passes.ttgpuir.add_optimize_reduction_locality(pm) intel.passes.ttgpuir.add_remove_layout_conversions(pm) intel.passes.ttgpuir.add_reduce_data_duplication(pm) passes.ttgpuir.add_reorder_instructions(pm)