https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127420
Hongtao Liu <liuhongt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |haochen.jiang at intel dot com
--- Comment #3 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> With profile information (autofdo lbr) we might know the most likely target,
> we also know whether this is a computed goto which is the only case where we
> can easily re-order blocks to have the destination follow the branch. In the
> computed goto case we should have an abnormal edge to it, possibly annotated
> with a frequency.
>
> I wonder if we can measure how many cases we slow down by emitting UD2?
Interesting, we can do some investigation with SPEC to see how many indirect
jump target it's fallthru instruction.