re PR tree-optimization/32183 (reassoc2 can more extra calculations into a loop)
authorZdenek Dvorak <ook@ucw.cz>
Sat, 8 Sep 2007 06:46:53 +0000 (08:46 +0200)
committerH.J. Lu <hjl@gcc.gnu.org>
Sat, 8 Sep 2007 06:46:53 +0000 (23:46 -0700)
commit7a9c7d01fd7c06dae1757dc50b2d5eb753619146
treedb33abdfbd16a8f9e8335c12bce9877a851b9dcc
parenta7b4caa2fd212c8e5aa1b1ba6ff432944f13bde0
re PR tree-optimization/32183 (reassoc2 can more extra calculations into a loop)

2007-09-07  Zdenek Dvorak  <ook@ucw.cz>

PR tree-optimization/32183
* Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).

* tree-ssa-reassoc.c: Include cfgloop.h.
(is_reassociable_op): Add a loop argument and return true only
for inside loop.
(linearize_expr): Updated.
(should_break_up_subtract): Likewise.
(linearize_expr_tree): Likewise.
(init_reassoc): Call loop_optimizer_init with
AVOID_CFG_MODIFICATIONS.  Remove calculate_dominance_info call
with CDI_DOMINATORS.
(fini_reassoc): Call loop_optimizer_finalize.

From-SVN: r128262
gcc/ChangeLog
gcc/Makefile.in
gcc/tree-ssa-reassoc.c