tree-vrp.c (find_case_label_index): Fix the binary search.
authorRafael Avila de Espindola <espindola@google.com>
Fri, 18 Apr 2008 21:23:10 +0000 (21:23 +0000)
committerRafael Espindola <espindola@gcc.gnu.org>
Fri, 18 Apr 2008 21:23:10 +0000 (21:23 +0000)
commitb7d8d447e5f0fe87a1a238b1264f584e16df8fd0
tree968b2b693d69697134a147506a0ec8b114504701
parent0ce7db600da86142b1ed27feb6f252c324426bd1
tree-vrp.c (find_case_label_index): Fix the binary search.

2008-04-18  Rafael Espindola  <espindola@google.com>
* tree-vrp.c (find_case_label_index): Fix the binary search.
(find_case_label_range): New.
(vrp_visit_switch_stmt): Use find_case_label_range.
(simplify_switch_using_ranges): Use find_case_label_range.

From-SVN: r134452
gcc/ChangeLog
gcc/tree-vrp.c