r242213 - /branches/ARM/sve-branch/gcc/tree-vrp.c

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Fri Nov 11 17:19:00 GMT 2016


Author: rsandifo
Date: Fri Nov 11 17:19:51 2016
New Revision: 242213

URL: https://gcc.gnu.org/viewcvs?rev=242213&root=gcc&view=rev
Log:
Add missing int_cst_rangeN checks to tree-vrp.c

The BIT_AND_EXPR handling in extract_range_from_binary_expr_1
was using value_range_constant_singleton without first checking
whether the range was a constant.  The earlier BIT_AND_EXPR
handling was correctly guarded, so this patch uses the same
guards again.

Existing tests showed the need for this once polynomial
constants are added.

Modified:
    branches/ARM/sve-branch/gcc/tree-vrp.c



More information about the Gcc-cvs mailing list