re PR tree-optimization/26939 (loop number of iterations analysis not working)

PR tree-optimization/26939
	* tree-chrec.c (chrec_merge): Use eq_evolutions_p.

From-SVN: r112623
This commit is contained in:
Sebastian Pop 2006-04-02 16:08:02 +02:00 committed by Sebastian Pop
parent e2157b49e6
commit ace23abf02
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
PR tree-optimization/26939
* tree-chrec.c (chrec_merge): Use eq_evolutions_p.
2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
* tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument

View File

@ -783,7 +783,7 @@ chrec_merge (tree chrec1,
if (chrec2 == chrec_not_analyzed_yet)
return chrec1;
if (operand_equal_p (chrec1, chrec2, 0))
if (eq_evolutions_p (chrec1, chrec2))
return chrec1;
return chrec_dont_know;