Skip to content

Commit ecc2a2d

Browse files
authored
Add sparse conditional copy propagation to Triton's make_ttgir transformation pipeline. (#4694)
The SCCP pass is a dataflow transformation that propagates constants through the IR, therefore simplifying it. Signed-off-by: Tiotto, Ettore <[email protected]>
1 parent 9455fe3 commit ecc2a2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/intel/backend/compiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def make_ttgir(mod, metadata, opt, properties):
304304
passes.ttgpuir.add_reorder_instructions(pm)
305305
passes.common.add_cse(pm)
306306
passes.common.add_symbol_dce(pm)
307+
passes.common.add_sccp(pm)
307308
passes.common.add_canonicalizer(pm)
308309
if knobs.intel.opt_reduction_locality:
309310
intel.passes.ttgpuir.add_optimize_reduction_locality(pm)

0 commit comments

Comments
 (0)