Commit 5f72e02d by Sebastian Pop Committed by Sebastian Pop

Avoid use of lang_hooks.types.type_for_size.

2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>

	* tree-data-ref.c (max_stmt_executions_tree): Do not call
	lang_hooks.types.type_for_size.

From-SVN: r176804
parent 7e806cfa
2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
* tree-data-ref.c (max_stmt_executions_tree): Do not call
lang_hooks.types.type_for_size.
2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/47653
* graphite-scop-detection.c (graphite_can_represent_loop): Discard
loops using wrapping semantics.
......
......@@ -1614,16 +1614,14 @@ static tree
max_stmt_executions_tree (struct loop *loop)
{
double_int nit;
tree type;
if (!max_stmt_executions (loop, true, &nit))
return chrec_dont_know;
type = lang_hooks.types.type_for_size (INT_TYPE_SIZE, true);
if (!double_int_fits_to_tree_p (type, nit))
if (!double_int_fits_to_tree_p (unsigned_type_node, nit))
return chrec_dont_know;
return double_int_to_tree (type, nit);
return double_int_to_tree (unsigned_type_node, nit);
}
/* Analyze a SIV (Single Index Variable) subscript where CHREC_A is a
......
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