* tree-ssa-loop-niter.c (simplify_replace_tree): Do not
replace constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160467
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-06-09 Richard Guenther <rguenther@suse.de>
+
+ * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
+ replace constants.
+
2010-06-09 Kai Tietz <kai.tietz@onevision.com>
* c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
if (!expr)
return NULL_TREE;
+ /* Do not bother to replace constants. */
+ if (CONSTANT_CLASS_P (old))
+ return expr;
+
if (expr == old
|| operand_equal_p (expr, old, 0))
return unshare_expr (new_tree);