Commit d6abd6d8 by Sebastian Pop Committed by Sebastian Pop

Use smallest_mode_for_size for computing the precision types of new graphite IVs.

2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-clast-to-gimple.c (gcc_type_for_interval): Use
	smallest_mode_for_size for computing the precision types of new
	graphite IVs.  Do not call lang_hooks.types.type_for_size.

From-SVN: r160165
parent 718d3588
2010-06-02 Sebastian Pop <sebastian.pop@amd.com> 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
* graphite-clast-to-gimple.c (gcc_type_for_interval): Use
smallest_mode_for_size for computing the precision types of new
graphite IVs. Do not call lang_hooks.types.type_for_size.
2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
* tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
information. information.
(remove_conditions_and_labels): Reset the GIMPLE_DEBUG information. (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
......
...@@ -478,6 +478,7 @@ gcc_type_for_interval (mpz_t low, mpz_t up, tree old_type) ...@@ -478,6 +478,7 @@ gcc_type_for_interval (mpz_t low, mpz_t up, tree old_type)
bool unsigned_p = true; bool unsigned_p = true;
int precision, prec_up, prec_int; int precision, prec_up, prec_int;
tree type; tree type;
enum machine_mode mode;
gcc_assert (value_le (low, up)); gcc_assert (value_le (low, up));
...@@ -490,7 +491,16 @@ gcc_type_for_interval (mpz_t low, mpz_t up, tree old_type) ...@@ -490,7 +491,16 @@ gcc_type_for_interval (mpz_t low, mpz_t up, tree old_type)
prec_int = precision_for_interval (low, up); prec_int = precision_for_interval (low, up);
precision = prec_up > prec_int ? prec_up : prec_int; precision = prec_up > prec_int ? prec_up : prec_int;
type = lang_hooks.types.type_for_size (precision, unsigned_p); if (precision > BITS_PER_WORD)
{
gloog_error = true;
return integer_type_node;
}
mode = smallest_mode_for_size (precision, MODE_INT);
precision = GET_MODE_PRECISION (mode);
type = build_nonstandard_integer_type (precision, unsigned_p);
if (!type) if (!type)
{ {
gloog_error = true; gloog_error = true;
......
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