diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-02 21:55:52 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-02 21:55:52 +0000 |
commit | 0213c30e2883be76970abee1ec7fa1d3736799ae (patch) | |
tree | 5da965d0b7d30f4ab47448b7dee5619e882dc4f5 /gcc/tree-chrec.c | |
parent | 9aff97092efb65a0ef1bd9d5c024744644fbff8d (diff) | |
download | gcc-0213c30e2883be76970abee1ec7fa1d3736799ae.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100517 138bc75d-0d04-0410-961f-82ee72b054a4
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 335bc7c6f3a..bd8bafc9762 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; } |