aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorAnshil Gandhi <gandhi21299@gmail.com>2023-01-17 14:34:27 -0700
committerAnshil Gandhi <Anshil.Gandhi@amd.com>2023-01-17 17:12:08 -0700
commit5073a622a785e8fd542fd15484970a435ef2e3e5 (patch)
tree6b23d2ae30c5f79d926054f8d78e231dc8c4e5d8 /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parentc43f38ec63641a68c36e6f782f14b77543f0a8d8 (diff)
downloadllvm-5073a622a785e8fd542fd15484970a435ef2e3e5.zip
llvm-5073a622a785e8fd542fd15484970a435ef2e3e5.tar.gz
llvm-5073a622a785e8fd542fd15484970a435ef2e3e5.tar.bz2
[MachineBasicBlock] Explicit FT branching param
Introduce a parameter in getFallThrough() to optionally allow returning the fall through basic block in spite of an explicit branch instruction to it. This parameter is set to false by default. Introduce getLogicalFallThrough() which calls getFallThrough(false) to obtain the block while avoiding insertion of a jump instruction to its immediate successor. This patch also reverts the changes made by D134557 and solves the case where a jump is inserted after another jump (branch-relax-no-terminators.mir). Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D140790
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions