tree-vrp.c (range_fits_type_p): Move to earlier point in file.
authorJeff Law <law@redhat.com>
Mon, 29 Apr 2013 12:52:17 +0000 (06:52 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 29 Apr 2013 12:52:17 +0000 (06:52 -0600)
commitebbd90d832d3f0277f02b30fe03451fe0bbf659d
tree8eeffe6533adbdfe8771db8a2c7e92e1b6381bcd
parent8b9b57ebca94b7c16daaed85d3020c06f2412dce
tree-vrp.c (range_fits_type_p): Move to earlier point in file.

* tree-vrp.c (range_fits_type_p): Move to earlier point in file.
        (simplify_cond_using_ranges): Generalize code to simplify
        COND_EXPRs where one argument is a constant and the other
        is an SSA_NAME created by an integral type conversion.

* gcc.dg/tree-ssa/vrp88.c: New test.

From-SVN: r198413
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/vrp88.c [new file with mode: 0644]
gcc/tree-vrp.c