[Bug tree-optimization/20514] hoisting of label out of jumptable would take place at cse, should happen at trees
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Nov 27 00:32:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20514
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Two things, we just don't jump thread.
The testcase in comment #2 works correctly on the trunk:
<bb 2> [15.0%]:
i_lsm.3_8 = i;
switch (i_lsm.3_8) <default: <L13> [15.0%], case 5: <L10> [85.0%]>
<L10> [85.0%]:
i = 4;
<L13> [15.0%]:
return 0;
That is no loop.
More information about the Gcc-bugs
mailing list