* tree-vrp.c (simplify_internal_call_using_ranges): If only
commitce8e666123048d3ed1925750d4f997f2f2f669ad
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2014 09:17:10 +0000 (26 09:17 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2014 09:17:10 +0000 (26 09:17 +0000)
treee5851048627095b50a086856c5651b462c6c116f
parent097681e48293a57ae6df99eabcbc7bdd95d519e0
* tree-vrp.c (simplify_internal_call_using_ranges): If only
one range is range_int_cst_p, but not both, at least optimize
addition/subtraction of 0 and multiplication by 0 or 1.
* gimple-fold.c (gimple_fold_call): Fold
IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
(gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
INTEGER_CSTs, try to fold at least x * 0 and y - y.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208840 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/tree-vrp.c