Commit 9da32d63 by Andrew Pinski Committed by Andrew Pinski

re PR tree-optimization/21304 (very long compile times with large cpp file from kdebindings)

2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/21304
        * tree-dfa.c (add_referenced_var): Only look at decls which
        have TREE_CONSTANT or TREE_READONLY set instead of if
        !TREE_PUBLIC or !TREE_CONSTANT.

From-SVN: r105390
parent e4785e43
2005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/21304
* tree-dfa.c (add_referenced_var): Only look at decls which
have TREE_CONSTANT or TREE_READONLY set instead of if
!TREE_PUBLIC or !TREE_CONSTANT.
2005-10-13 James E Wilson <wilson@specifix.com>
* doc/invoke.texi: For -x, add f95-cpp-input.
......
......@@ -651,9 +651,9 @@ add_referenced_var (tree var, struct walk_state *walk_state)
optimizers. */
&& !DECL_EXTERNAL (var)
/* It's not necessary to walk the initial value of non-constant
public variables because it cannot be propagated by the
variables because it cannot be propagated by the
optimizers. */
&& (!TREE_PUBLIC (var) || !TREE_CONSTANT (var)))
&& (TREE_CONSTANT (var) || TREE_READONLY (var)))
walk_tree (&DECL_INITIAL (var), find_vars_r, walk_state, 0);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment