Commit 6be74c4f by Jakub Jelinek Committed by Jakub Jelinek

tree-chrec.c (reset_evolution_in_loop): Use build3 instead of build2.

	* tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
	build2.

From-SVN: r100675
parent 40182dbf
2005-06-06 Jakub Jelinek <jakub@redhat.com> 2005-06-06 Jakub Jelinek <jakub@redhat.com>
* tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
build2.
* fold-const.c (operand_equal_p): Don't return 1, if element * fold-const.c (operand_equal_p): Don't return 1, if element
chains for 2 VECTOR_CSTs are not the same length. chains for 2 VECTOR_CSTs are not the same length.
......
...@@ -725,11 +725,15 @@ reset_evolution_in_loop (unsigned loop_num, ...@@ -725,11 +725,15 @@ reset_evolution_in_loop (unsigned loop_num,
{ {
if (TREE_CODE (chrec) == POLYNOMIAL_CHREC if (TREE_CODE (chrec) == POLYNOMIAL_CHREC
&& CHREC_VARIABLE (chrec) > loop_num) && CHREC_VARIABLE (chrec) > loop_num)
return build2 {
(TREE_CODE (chrec), tree left = reset_evolution_in_loop (loop_num, CHREC_LEFT (chrec),
new_evol);
tree right = reset_evolution_in_loop (loop_num, CHREC_RIGHT (chrec),
new_evol);
return build3 (POLYNOMIAL_CHREC, TREE_TYPE (left),
build_int_cst (NULL_TREE, CHREC_VARIABLE (chrec)), build_int_cst (NULL_TREE, CHREC_VARIABLE (chrec)),
reset_evolution_in_loop (loop_num, CHREC_LEFT (chrec), new_evol), left, right);
reset_evolution_in_loop (loop_num, CHREC_RIGHT (chrec), new_evol)); }
while (TREE_CODE (chrec) == POLYNOMIAL_CHREC while (TREE_CODE (chrec) == POLYNOMIAL_CHREC
&& CHREC_VARIABLE (chrec) == loop_num) && CHREC_VARIABLE (chrec) == loop_num)
......
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