[all-commits] [llvm/llvm-project] 5073a6: [MachineBasicBlock] Explicit FT branching param
Anshil Gandhi via All-commits
all-commits at lists.llvm.org
Tue Jan 17 16:12:34 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5073a622a785e8fd542fd15484970a435ef2e3e5
https://github.com/llvm/llvm-project/commit/5073a622a785e8fd542fd15484970a435ef2e3e5
Author: Anshil Gandhi <gandhi21299 at gmail.com>
Date: 2023-01-17 (Tue, 17 Jan 2023)
Changed paths:
M llvm/include/llvm/CodeGen/MachineBasicBlock.h
M llvm/lib/CodeGen/BranchRelaxation.cpp
M llvm/lib/CodeGen/MachineBasicBlock.cpp
A llvm/test/CodeGen/AMDGPU/branch-relax-indirect-branch.mir
Log Message:
-----------
[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
More information about the All-commits
mailing list