re PR tree-optimization/21258 (Teach VRP to pick up a constant from case label.)
commit9bb6aa43049333736b834b34d3a46816c1997e15
authorRichard Guenther <rguenther@suse.de>
Fri, 13 Apr 2007 09:21:22 +0000 (13 09:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 13 Apr 2007 09:21:22 +0000 (13 09:21 +0000)
tree3863c3f46faaf518cc32d01591e8d032b20ccd93
parent27ac40e2a09b03d11470e714203f509cbf4078f8
re PR tree-optimization/21258 (Teach VRP to pick up a constant from case label.)

2007-04-13  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/21258
* tree-vrp.c (compare_case_labels): New helper.
(find_switch_asserts): New function.
(find_assert_locations): Call it for SWITCH_EXPRs.

* gcc.dg/tree-ssa/vrp34.c: New testcase.

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