@@ -1781,7 +1781,7 @@ function compile_mlir!(
17811781 backend,
17821782 enable_triton_passes= false ,
17831783 )
1784- opt_passes3 = optimization_passes (
1784+ opt_passes_with_triton = optimization_passes (
17851785 compile_options;
17861786 sroa= false ,
17871787 recognize_comms,
@@ -1841,12 +1841,12 @@ function compile_mlir!(
18411841 " enzyme-batch" ,
18421842 opt_passes2,
18431843 enzyme_pass,
1844- opt_passes3 ,
1844+ opt_passes_with_triton ,
18451845 " canonicalize" ,
18461846 " remove-unnecessary-enzyme-ops" ,
18471847 " enzyme-simplify-math" ,
18481848 legalize_chlo_to_stablehlo... ,
1849- opt_passes3 ,
1849+ opt_passes2 ,
18501850 lower_enzymexla_linalg_pass,
18511851 jit,
18521852 ]
@@ -1857,12 +1857,12 @@ function compile_mlir!(
18571857 " enzyme-batch" ,
18581858 opt_passes2,
18591859 enzyme_pass,
1860- opt_passes3 ,
1860+ opt_passes_with_triton ,
18611861 " canonicalize" ,
18621862 " remove-unnecessary-enzyme-ops" ,
18631863 " enzyme-simplify-math" ,
18641864 legalize_chlo_to_stablehlo... ,
1865- opt_passes3 ,
1865+ opt_passes2 ,
18661866 kern,
18671867 raise_passes,
18681868 lower_enzymexla_linalg_pass,
@@ -1886,12 +1886,12 @@ function compile_mlir!(
18861886 " enzyme-batch" ,
18871887 opt_passes2,
18881888 enzyme_pass,
1889- opt_passes3 ,
1889+ opt_passes_with_triton ,
18901890 " canonicalize" ,
18911891 " remove-unnecessary-enzyme-ops" ,
18921892 " enzyme-simplify-math" ,
18931893 legalize_chlo_to_stablehlo... ,
1894- opt_passes3 ,
1894+ opt_passes2 ,
18951895 ]
18961896 end ,
18971897 ' ,' ,
@@ -1911,12 +1911,12 @@ function compile_mlir!(
19111911 " enzyme-batch" ,
19121912 opt_passes2,
19131913 enzyme_pass,
1914- opt_passes3 ,
1914+ opt_passes_with_triton ,
19151915 " canonicalize" ,
19161916 " remove-unnecessary-enzyme-ops" ,
19171917 " enzyme-simplify-math" ,
19181918 legalize_chlo_to_stablehlo... ,
1919- opt_passes3 ,
1919+ opt_passes2 ,
19201920 ]
19211921 else
19221922 [
@@ -1925,12 +1925,12 @@ function compile_mlir!(
19251925 " enzyme-batch" ,
19261926 opt_passes2,
19271927 enzyme_pass,
1928- opt_passes3 ,
1928+ opt_passes_with_triton ,
19291929 " canonicalize" ,
19301930 " remove-unnecessary-enzyme-ops" ,
19311931 " enzyme-simplify-math" ,
19321932 legalize_chlo_to_stablehlo... ,
1933- opt_passes3 ,
1933+ opt_passes2 ,
19341934 kern,
19351935 raise_passes,
19361936 ]
@@ -1952,12 +1952,12 @@ function compile_mlir!(
19521952 " enzyme-batch" ,
19531953 opt_passes2,
19541954 enzyme_pass,
1955- opt_passes3 ,
1955+ opt_passes_with_triton ,
19561956 " canonicalize" ,
19571957 " remove-unnecessary-enzyme-ops" ,
19581958 " enzyme-simplify-math" ,
19591959 legalize_chlo_to_stablehlo... ,
1960- opt_passes3 ,
1960+ opt_passes2 ,
19611961 kern,
19621962 ]
19631963 end ,
@@ -1975,12 +1975,12 @@ function compile_mlir!(
19751975 " enzyme-batch" ,
19761976 opt_passes2,
19771977 enzyme_pass,
1978- opt_passes3 ,
1978+ opt_passes_with_triton ,
19791979 " canonicalize" ,
19801980 " remove-unnecessary-enzyme-ops" ,
19811981 " enzyme-simplify-math" ,
19821982 legalize_chlo_to_stablehlo... ,
1983- opt_passes3 ,
1983+ opt_passes2 ,
19841984 ],
19851985 ' ,' ,
19861986 ),
@@ -2017,7 +2017,7 @@ function compile_mlir!(
20172017 " remove-unnecessary-enzyme-ops" ,
20182018 " enzyme-simplify-math" ,
20192019 legalize_chlo_to_stablehlo... ,
2020- opt_passes3 ,
2020+ opt_passes_with_triton ,
20212021 lower_enzymexla_linalg_pass,
20222022 jit,
20232023 ]
@@ -2030,7 +2030,7 @@ function compile_mlir!(
20302030 " remove-unnecessary-enzyme-ops" ,
20312031 " enzyme-simplify-math" ,
20322032 legalize_chlo_to_stablehlo... ,
2033- opt_passes3 ,
2033+ opt_passes_with_triton ,
20342034 kern,
20352035 raise_passes,
20362036 lower_enzymexla_linalg_pass,
@@ -2241,7 +2241,7 @@ function compile_mlir!(
22412241 run_pass_pipeline! (
22422242 mod,
22432243 join (
2244- [opt_passes, " canonicalize" , " cse" , " canonicalize" , opt_passes3 ],
2244+ [opt_passes, " canonicalize" , " cse" , " canonicalize" , opt_passes2 ],
22452245 " ," ,
22462246 ),
22472247 " mid_pad_opts" ,
0 commit comments