[llvm-dev] MBB reordering vs. MBB fall-through

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Wed May 10 08:13:32 PDT 2017


On 9 May 2017 at 22:21, Dr. ERDI Gergo via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Is it valid for an MBB to not have a final unconditional jump if the jump
> would be to the next MBB anyway? If yes, how is that supposed to interact
> with MBB reordering?

That is valid. Passes that want to reorder basic blocks should only do
so if the AnalyzeBranch and related target hooks (Insert/Remove) allow
it. They're capable of reconstructing the branches so they point to
arbitrary destinations.

Cheers.

Tim.


More information about the llvm-dev mailing list