* tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
about when to iterate.
From-SVN: r104658
+2005-09-26 Jeff Law <law@redhat.com>
+
+ * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
+ about when to iterate.
+
2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
PR target/23847
if (cfg_altered)
free_dominance_info (CDI_DOMINATORS);
- cfg_altered = cleanup_tree_cfg ();
+ /* Only iterate if we threaded jumps AND the CFG cleanup did
+ something interesting. Other cases generate far fewer
+ optimization opportunities and thus are not worth another
+ full DOM iteration. */
+ cfg_altered &= cleanup_tree_cfg ();
if (rediscover_loops_after_threading)
{