@@ -725,8 +725,6 @@ function optimization_passes(;
725
725
" merge_consecutive_reshapes<16>" ,
726
726
" transpose_is_reshape<16>" ,
727
727
" zero_extent_tensor_canon<16>" ,
728
- " chlo_inf_const_prop<16>" ,
729
- " gamma_const_prop<16>" ,
730
728
" cse_broadcast_in_dim<16>" ,
731
729
" cse_slice<16>" ,
732
730
" cse_transpose<16>" ,
@@ -752,7 +750,6 @@ function optimization_passes(;
752
750
" min_simplify<16>" ,
753
751
" or_simplify<16>" ,
754
752
" xor_simplify<16>" ,
755
- " abs_const_prop<16>" ,
756
753
" negate_simplify<16>" ,
757
754
" mul_simplify<16>" ,
758
755
" div_simplify<16>" ,
@@ -766,7 +763,6 @@ function optimization_passes(;
766
763
" sin_simplify<16>" ,
767
764
" noop_slice<16>" ,
768
765
" noop_reverse<16>" ,
769
- " const_prop_through_barrier<16>" ,
770
766
" slice_slice<16>" ,
771
767
" shift_right_logical_simplify<16>" ,
772
768
" pad_simplify<16>($max_constant_threshold )" ,
@@ -792,7 +788,6 @@ function optimization_passes(;
792
788
" slice_elementwise<1>" ,
793
789
" slice_pad<1>" ,
794
790
" dot_reshape_dot<1>" ,
795
- " concat_const_prop<1>($max_constant_threshold )" ,
796
791
" concat_fuse<1>" ,
797
792
" pad_reshape_pad<1>" ,
798
793
" pad_pad<1>" ,
@@ -845,20 +840,14 @@ function optimization_passes(;
845
840
" slice_dot_general<1>" ,
846
841
" if_inline<1>" ,
847
842
" if_to_select<1>" ,
848
- " dynamic_update_slice_const_prop($max_constant_threshold )" ,
849
843
" dynamic_gather_op_is_not_dynamic<16>" ,
850
844
" divide_sqrt_to_multiply_rsqrt<16>" ,
851
845
" associative_binary_op_reordering<1>" ,
852
846
" transpose_broadcast_in_dim_to_broadcast_in_dim<16>" ,
853
847
" scatter_indices_are_unique" ,
854
848
" replace_neg_add_with_subtract" ,
855
- " log_const_prop<1>" ,
856
- " log_plus_one_const_prop<1>" ,
857
849
" binop_const_simplify" ,
858
- " is_finite_const_prop" ,
859
- " not_const_prop" ,
860
850
" not_select_simplify" ,
861
- " scatter_update_computation_const_prop" ,
862
851
" common_compare_expression_rewrite" ,
863
852
" compare_select_simplify" ,
864
853
" while_simplify<1>(1)" ,
@@ -945,6 +934,34 @@ function optimization_passes(;
945
934
# "concat_to_onedim_dusslice",
946
935
]
947
936
937
+ # constant prop patterns
938
+ append! (
939
+ transform_passes_list,
940
+ [
941
+ " chlo_inf_const_prop<16>" ,
942
+ " gamma_const_prop<16>" ,
943
+ " abs_const_prop<16>" ,
944
+ " const_prop_through_barrier<16>" ,
945
+ " concat_const_prop<1>($max_constant_threshold )" ,
946
+ " dynamic_update_slice_const_prop($max_constant_threshold )" ,
947
+ " log_const_prop<1>" ,
948
+ " log_plus_one_const_prop<1>" ,
949
+ " is_finite_const_prop" ,
950
+ " not_const_prop" ,
951
+ " scatter_update_computation_const_prop" ,
952
+ " neg_const_prop" ,
953
+ " sqrt_const_prop" ,
954
+ " rsqrt_const_prop" ,
955
+ " cos_const_prop" ,
956
+ " sin_const_prop" ,
957
+ " exp_const_prop" ,
958
+ " expm1_const_prop" ,
959
+ " tanh_const_prop" ,
960
+ " logistic_const_prop" ,
961
+ " conj_const_prop" ,
962
+ ],
963
+ )
964
+
948
965
if DUS_SLICE_SIMPLIFY[]
949
966
push! (transform_passes_list, " dus_slice_simplify" )
950
967
end
0 commit comments