diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2011-07-26 18:48:33 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2011-07-26 18:48:33 +0000 |
commit | 5f72e02dd8892ed77705a5f7b8ae35926a9350a0 (patch) | |
tree | 8d3cc2220db60bb8e113df1527ffc7a5d2a107ad /gcc/tree-data-ref.c | |
parent | 7e806cfabd83ae8f89990d396f3838642e19ac76 (diff) | |
download | gcc-5f72e02dd8892ed77705a5f7b8ae35926a9350a0.zip gcc-5f72e02dd8892ed77705a5f7b8ae35926a9350a0.tar.gz gcc-5f72e02dd8892ed77705a5f7b8ae35926a9350a0.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r-- | gcc/tree-data-ref.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 3e18e8d..51badb4 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -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 |