This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/81698] expand_omp_sections generates unusual switch
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Aug 2017 14:56:12 +0000
- Subject: [Bug libgomp/81698] expand_omp_sections generates unusual switch
- Auto-submitted: auto-generated
- References: <bug-81698-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81698
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That seems like expand_case bug to me. We don't rely on order of edges for say
GIMPLE_COND either, but determine which one is which by EDGE_FALSE_VALUE vs.
EDGE_TRUE_VALUE. For GIMPLE_SWITCH, I think it should just determine the
label, from that find which bb it is in and find the corresponding edge.