tree-ssa-loop-ivopts.c (aff_combination_convert, [...]): New functions.
authorZdenek Dvorak <dvorakz@suse.cz>
Sun, 24 Sep 2006 19:03:57 +0000 (21:03 +0200)
committerAdam Nemet <nemet@gcc.gnu.org>
Sun, 24 Sep 2006 19:03:57 +0000 (19:03 +0000)
commitb67102aebdbf12edd5321b48c4ac5ca3303324c6
tree5c3ed6cf825260942bd4420fe5ffa2a207ff9ea6
parentab1e659cf766a49fe1923fefc9cbacbd4e320fc4
tree-ssa-loop-ivopts.c (aff_combination_convert, [...]): New functions.

* tree-ssa-loop-ivopts.c (aff_combination_convert,
determine_common_wider_type): New functions.
(get_computation_aff): Use them to simplify arithmetic between
UBASE and CBASE if they are shortened from the same type.

Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com>
From-SVN: r117182
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c