[llvm] [TailDuplicator] Only duplicate the blocks containing computed gotos (PR #114990)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 20:47:26 PST 2024
DianQK wrote:
> Please don't link to gcc source code in commit messages.
Removed.
> I think it might make sense to try to pursue a more general solution here... can we simplify the CFG while still keeping the benefit of taildup? Maybe introduce a fake BB into the CFG or something. But special-casing indirectbr seems okay short-term.
I think the current IR is already as you want: https://llvm.godbolt.org/z/o5YT191P9.
There’s only a single merged indirectbr here.
https://github.com/llvm/llvm-project/pull/114990
More information about the llvm-commits
mailing list