[llvm-commits] [patch] Change how clang produces computed gotos
Duncan Sands
baldrick at free.fr
Mon Jun 6 12:11:16 PDT 2011
Hi Rafael,
...
> Currently clang produces a branch to a common bb that has the only inderctbr in
> the function. This is normally optimized away, but the optimizers are not
> kicking in jsinterp.o and it has a single 'jmp *%rax' in the generated binary.
>
> The main reason for the status quo I think is a gradual evolution from the days
> there was no indirectbr in llvm.
for what it's worth, GCC does this too (i.e. refactors all indirect branches to
just one), so I don't think it is due to LLVM evolution.
Ciao, Duncan.
More information about the llvm-commits
mailing list