@@ -750,17 +750,13 @@ function optimization_passes(;
750
750
" min_simplify<16>" ,
751
751
" or_simplify<16>" ,
752
752
" xor_simplify<16>" ,
753
- " negate_simplify<16>" ,
754
753
" mul_simplify<16>" ,
755
754
" div_simplify<16>" ,
756
755
" rem_simplify<16>" ,
757
756
" pow_simplify<16>" ,
758
757
" simplify_extend<16>" ,
759
758
" simplify_wrap<16>" ,
760
759
" simplify_rotate<16>" ,
761
- " sqrt_simplify<16>" ,
762
- " cos_simplify<16>" ,
763
- " sin_simplify<16>" ,
764
760
" noop_slice<16>" ,
765
761
" noop_reverse<16>" ,
766
762
" slice_slice<16>" ,
@@ -769,8 +765,6 @@ function optimization_passes(;
769
765
" select_pad_to_dus<1>" ,
770
766
" and_pad_pad<1>" ,
771
767
" negative_pad_to_slice<16>" ,
772
- " tanh_simplify<16>" ,
773
- " exp_simplify<16>" ,
774
768
" slice_simplify<16>" ,
775
769
" convert_simplify<16>" ,
776
770
" dynamic_slice_to_static<16>" ,
@@ -938,17 +932,14 @@ function optimization_passes(;
938
932
append! (
939
933
transform_passes_list,
940
934
[
935
+ # unary constant propagation
941
936
" chlo_inf_const_prop<16>" ,
942
937
" gamma_const_prop<16>" ,
943
938
" 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
939
" log_const_prop<1>" ,
948
940
" log_plus_one_const_prop<1>" ,
949
941
" is_finite_const_prop" ,
950
942
" not_const_prop" ,
951
- " scatter_update_computation_const_prop" ,
952
943
" neg_const_prop" ,
953
944
" sqrt_const_prop" ,
954
945
" rsqrt_const_prop" ,
@@ -959,6 +950,34 @@ function optimization_passes(;
959
950
" tanh_const_prop" ,
960
951
" logistic_const_prop" ,
961
952
" conj_const_prop" ,
953
+ " ceil_const_prop" ,
954
+ " cbrt_const_prop" ,
955
+ " real_const_prop" ,
956
+ " imag_const_prop" ,
957
+ " round_const_prop" ,
958
+ " round_nearest_even_const_prop" ,
959
+ " sign_const_prop" ,
960
+ " floor_const_prop" ,
961
+ " tan_const_prop" ,
962
+ # binary constant propagation
963
+ " add_const_prop" ,
964
+ " and_const_prop" ,
965
+ " atan2_const_prop" ,
966
+ " complex_const_prop" ,
967
+ " div_const_prop" ,
968
+ " max_const_prop" ,
969
+ " min_const_prop" ,
970
+ " mul_const_prop" ,
971
+ " or_const_prop" ,
972
+ " pow_const_prop" ,
973
+ " rem_const_prop" ,
974
+ " sub_const_prop" ,
975
+ " xor_const_prop" ,
976
+ # other constant propagations
977
+ " const_prop_through_barrier<16>" ,
978
+ " concat_const_prop<1>($max_constant_threshold )" ,
979
+ " dynamic_update_slice_const_prop($max_constant_threshold )" ,
980
+ " scatter_update_computation_const_prop" ,
962
981
],
963
982
)
964
983
0 commit comments