* gimple-loop-interchange.cc (STMT_COST_RATIO): New macro.
commit3ee06931b081190c229de315b1b5102d6382bef5
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Dec 2017 12:22:24 +0000 (15 12:22 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Dec 2017 12:22:24 +0000 (15 12:22 +0000)
tree0de6009104de57d1594bee0ca244fda4f96e528c
parent1937db45cca141f46e0f933ba848c9eb346ac5b6
* gimple-loop-interchange.cc (STMT_COST_RATIO): New macro.
(loop_cand::m_num_stmts, loop_cand::m_const_init_reduc): New members.
(loop_cand::loop_cand): Initialize above members.
(loop_cand::supported_operations): Delete.
(loop_cand::can_interchange_p): Inline above function.
(loop_cand::classify_simple_reduction): Record number of constant
initialized simple reductions.
(should_interchange_loops): New parameters.  Check stmt cost of loops
to be interchange.
(tree_loop_interchange::interchange): Prepare stmt cost of outer loop.
Update call to should_interchange_loops.
(should_interchange_loop_nest): Update call to
should_interchange_loops.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255691 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-loop-interchange.cc