[PATCH] D30572: Remove equal BBs from a function
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 08:08:57 PDT 2017
MatzeB added a comment.
In https://reviews.llvm.org/D30572#707568, @avt77 wrote:
>
> And more: TailMerging works with return only or with unconditional jumps as well?
Given something like
BB0:
A
B
C
RET
BB1:
C
RET
BB2:
B
C
RET
tail merging should give you something like:
BB0:
A
B
# fallthrough
BB1:
C
RET
BB2:
B
JMP BB1
That's at least my understanding, but I am no expert in the pass. Better do your own experiments/code reading.
https://reviews.llvm.org/D30572
More information about the llvm-commits
mailing list