Commit 6df588cb by Richard Guenther Committed by Richard Biener

re PR lto/46664 (Failed to build 481.wrf in SPEC CPU 2006 with LTO)

2010-11-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/46664
	* tree-affine.c (aff_combination_to_tree): Add rest last.

From-SVN: r167173
parent 4a150fc8
2010-11-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46664
* tree-affine.c (aff_combination_to_tree): Add rest last.
2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at> 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
PR target/33637 PR target/33637
...@@ -434,7 +434,7 @@ tree ...@@ -434,7 +434,7 @@ tree
aff_combination_to_tree (aff_tree *comb) aff_combination_to_tree (aff_tree *comb)
{ {
tree type = comb->type; tree type = comb->type;
tree expr = comb->rest; tree expr = NULL_TREE;
unsigned i; unsigned i;
double_int off, sgn; double_int off, sgn;
tree type1 = type; tree type1 = type;
...@@ -447,6 +447,9 @@ aff_combination_to_tree (aff_tree *comb) ...@@ -447,6 +447,9 @@ aff_combination_to_tree (aff_tree *comb)
expr = add_elt_to_tree (expr, type, comb->elts[i].val, comb->elts[i].coef, expr = add_elt_to_tree (expr, type, comb->elts[i].val, comb->elts[i].coef,
comb); comb);
if (comb->rest)
expr = add_elt_to_tree (expr, type, comb->rest, double_int_one, comb);
/* Ensure that we get x - 1, not x + (-1) or x + 0xff..f if x is /* Ensure that we get x - 1, not x + (-1) or x + 0xff..f if x is
unsigned. */ unsigned. */
if (double_int_negative_p (comb->offset)) if (double_int_negative_p (comb->offset))
......
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