[llvm-commits] [patch] Change how clang produces computed gotos
baldrick at free.fr
Mon Jun 6 14:11:16 CDT 2011
> 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.
More information about the llvm-commits