diff options
author | Richard Guenther <rguenth@gcc.gnu.org> | 2005-06-02 21:55:52 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-06-02 21:55:52 +0000 |
commit | 1c1205fb0b9a3270c1bc43e6ad21cd23669081b2 (patch) | |
tree | 5da965d0b7d30f4ab47448b7dee5619e882dc4f5 /gcc/tree-chrec.c | |
parent | 8ab5f5c9fa2e5161b4822e2205a17f6b5ba6528a (diff) | |
download | gcc-1c1205fb0b9a3270c1bc43e6ad21cd23669081b2.zip gcc-1c1205fb0b9a3270c1bc43e6ad21cd23669081b2.tar.gz gcc-1c1205fb0b9a3270c1bc43e6ad21cd23669081b2.tar.bz2 |
tree-chrec.c (chrec_fold_plus_1): Ensure we build binary operations with the correct types.
2005-06-02 Richard Guenther <rguenth@gcc.gnu.org>
* tree-chrec.c (chrec_fold_plus_1): Ensure we build
binary operations with the correct types.
* tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
for all computation.
From-SVN: r100517
Diffstat (limited to 'gcc/tree-chrec.c')
-rw-r--r-- | gcc/tree-chrec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c index 335bc7c..bd8bafc 100644 --- a/gcc/tree-chrec.c +++ b/gcc/tree-chrec.c @@ -293,7 +293,9 @@ chrec_fold_plus_1 (enum tree_code code, && size < PARAM_VALUE (PARAM_SCEV_MAX_EXPR_SIZE)) return build2 (code, type, op0, op1); else if (size < PARAM_VALUE (PARAM_SCEV_MAX_EXPR_SIZE)) - return fold_build2 (code, type, op0, op1); + return fold_build2 (code, type, + fold_convert (type, op0), + fold_convert (type, op1)); else return chrec_dont_know; } |