[Bug middle-end/61621] Normal enum switch slower than test case.
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jun 20 09:58:25 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61621
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |middle-end
Keywords| |missed-optimization
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note I think this might have been improved already.
Also I think there is an issue here which is not mentioned, in the case of
"instructions", there might be most used ones which can be pulled out of the
case table.
Also in the below test function could even be using a constant table and a load
from that based on the instructions [i] (and then added to value).
More information about the Gcc-bugs
mailing list