https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60937
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks to be fixed on the trunk. Where we can jump thread: <bb 4> [local count: 1073741824]: # _26 = PHI <0(2), -12(3)> PROF_edge_counter_8 = __gcov0._Z16__get_user_pagesv[1]; PROF_edge_counter_9 = PROF_edge_counter_8 + 1; __gcov0._Z16__get_user_pagesv[1] = PROF_edge_counter_9; switch (_26) <default: <L9> [33.00%], case -133: <L8> [67.00%], case -12: <L8> [67.00%], case 0: <L8> [67.00%]> Now. as the switch only will goto L8 for the two values of _26.