Skip to content

Commit 35174a6

Browse files
authored
[XPU] Enable reduction optimization by default
Add reduction optimization pass to the pipeline by default.
1 parent 131c537 commit 35174a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

third_party/intel/backend/compiler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,7 @@ def make_ttgir(mod, metadata, opt, properties):
252252
passes.common.add_cse(pm)
253253
passes.ttgpuir.add_prefetch(pm)
254254
passes.ttgpuir.add_optimize_dot_operands(pm, True)
255-
if os.getenv("TRITON_INTEL_OPTIMIZE_REDUCTION_LOCALITY", "0") == "1":
256-
intel.passes.ttgpuir.add_optimize_reduction_locality(pm)
257-
intel.passes.ttgpuir.add_optimize_elementwise_parallelism(pm)
255+
intel.passes.ttgpuir.add_optimize_reduction_locality(pm)
258256
intel.passes.ttgpuir.add_remove_layout_conversions(pm)
259257
intel.passes.ttgpuir.add_reduce_data_duplication(pm)
260258
passes.ttgpuir.add_reorder_instructions(pm)

0 commit comments

Comments
 (0)