tree-cfg.c (group_case_labels_stmt): Return whether we changed anything.
commit4e3e8a5f8175d06b2de55a6f45491fc484901370
authorRichard Biener <rguenther@suse.de>
Thu, 29 Jun 2017 11:25:29 +0000 (29 11:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 29 Jun 2017 11:25:29 +0000 (29 11:25 +0000)
treeb04e0bef1db0be49b0cd9205bc42896a05b79fe4
parent6cd83bec4b76e19175a425b7e1841d9c5d0d164e
tree-cfg.c (group_case_labels_stmt): Return whether we changed anything.

2017-06-29  Richard Biener  <rguenther@suse.de>

* tree-cfg.c (group_case_labels_stmt): Return whether we changed
anything.
(group_case_labels): Likewise.
(find_taken_edge): Push sanity checking on val to workers...
(find_taken_edge_cond_expr): ... here
(find_taken_edge_switch_expr): ... and here, handle cases
with just a default label.
* tree-cfg.h (group_case_labels_stmt): Adjust prototype.
(group_case_labels): Likewise.
* tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
group_case_labels does anything cleanup the CFG again.

From-SVN: r249780
gcc/ChangeLog
gcc/tree-cfg.c
gcc/tree-cfg.h
gcc/tree-cfgcleanup.c