]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-loop-manip.h
VECT: Add tree_code into "creat_iv" and allow it can handle MINUS_EXPR IV
authorPan Li <pan2.li@intel.com>
Thu, 11 May 2023 10:50:56 +0000 (18:50 +0800)
committerPan Li <pan2.li@intel.com>
Thu, 11 May 2023 11:06:44 +0000 (19:06 +0800)
commit0918360d709a32294913aef4392cec6c1dec1857
tree8dfac10cd9d51ba431cc46965f928ae980158801
parent0440b774ea3311d65027aa7b1d26b62b7d8538ea
VECT: Add tree_code into "creat_iv" and allow it can handle MINUS_EXPR IV

This patch is going to be commited after bootstrap && regression on X86
PASSED.

Thanks Richards.

gcc/ChangeLog:

* cfgloopmanip.cc (create_empty_loop_on_edge): Add PLUS_EXPR.
* gimple-loop-interchange.cc
(tree_loop_interchange::map_inductions_to_loop): Ditto.
* tree-ssa-loop-ivcanon.cc (create_canonical_iv): Ditto.
* tree-ssa-loop-ivopts.cc (create_new_iv): Ditto.
* tree-ssa-loop-manip.cc (create_iv): Ditto.
(tree_transform_and_unroll_loop): Ditto.
(canonicalize_loop_ivs): Ditto.
* tree-ssa-loop-manip.h (create_iv): Ditto.
* tree-vect-data-refs.cc (vect_create_data_ref_ptr): Ditto.
* tree-vect-loop-manip.cc (vect_set_loop_controls_directly):
Ditto.
(vect_set_loop_condition_normal): Ditto.
* tree-vect-loop.cc (vect_create_epilog_for_reduction): Ditto.
* tree-vect-stmts.cc (vectorizable_store): Ditto.
(vectorizable_load): Ditto.

Signed-off-by: Juzhe Zhong <juzhe.zhong@rivai.ai>
gcc/cfgloopmanip.cc
gcc/gimple-loop-interchange.cc
gcc/tree-ssa-loop-ivcanon.cc
gcc/tree-ssa-loop-ivopts.cc
gcc/tree-ssa-loop-manip.cc
gcc/tree-ssa-loop-manip.h
gcc/tree-vect-data-refs.cc
gcc/tree-vect-loop-manip.cc
gcc/tree-vect-loop.cc
gcc/tree-vect-stmts.cc