gimple-loop-interchange.cc (STMT_COST_RATIO): New macro.
authorBin Cheng <bin.cheng@arm.com>
Fri, 15 Dec 2017 12:22:24 +0000 (12:22 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 15 Dec 2017 12:22:24 +0000 (12:22 +0000)
commit1eeeda473c577152f6a1a9846b4c0df376622b95
tree0de6009104de57d1594bee0ca244fda4f96e528c
parent76fc4a85933e84c70c0441d7d87935d805694052
gimple-loop-interchange.cc (STMT_COST_RATIO): New macro.

* 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.

From-SVN: r255691
gcc/ChangeLog
gcc/gimple-loop-interchange.cc