Commit 218d1c24 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/37416 (Failure to return number of loop iterations)

	PR tree-optimization/37416
	* tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle NOP_EXPR.

From-SVN: r142616
parent e2f08cac
2008-12-09 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/37416
* tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle NOP_EXPR.
2008-12-09 Janis Johnson <janis187@us.ibm.com> 2008-12-09 Janis Johnson <janis187@us.ibm.com>
* doc/sourcebuild.texi (Test Directives): Fix formatting. * doc/sourcebuild.texi (Test Directives): Fix formatting.
...@@ -1229,6 +1229,18 @@ follow_ssa_edge_in_rhs (struct loop *loop, gimple stmt, ...@@ -1229,6 +1229,18 @@ follow_ssa_edge_in_rhs (struct loop *loop, gimple stmt,
case GIMPLE_SINGLE_RHS: case GIMPLE_SINGLE_RHS:
return follow_ssa_edge_expr (loop, stmt, gimple_assign_rhs1 (stmt), return follow_ssa_edge_expr (loop, stmt, gimple_assign_rhs1 (stmt),
halting_phi, evolution_of_loop, limit); halting_phi, evolution_of_loop, limit);
case GIMPLE_UNARY_RHS:
if (code == NOP_EXPR)
{
/* This assignment is under the form "a_1 = (cast) rhs. */
t_bool res
= follow_ssa_edge_expr (loop, stmt, gimple_assign_rhs1 (stmt),
halting_phi, evolution_of_loop, limit);
*evolution_of_loop = chrec_convert (type, *evolution_of_loop, stmt);
return res;
}
/* FALLTHRU */
default: default:
return t_false; return t_false;
} }
......
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