diff options
author | Anshil Gandhi <Anshil.Gandhi@amd.com> | 2023-04-12 23:20:50 -0600 |
---|---|---|
committer | Anshil Gandhi <Anshil.Gandhi@amd.com> | 2023-04-12 23:21:20 -0600 |
commit | 6530bd3030d3708fb5eeaecda352448912e6d647 (patch) | |
tree | 4a4281a9305ff4df1c01182ce8a68cfd269003c4 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | d093d34c33d5ba2faa5430d88d1698304e102da7 (diff) | |
download | llvm-6530bd3030d3708fb5eeaecda352448912e6d647.zip llvm-6530bd3030d3708fb5eeaecda352448912e6d647.tar.gz llvm-6530bd3030d3708fb5eeaecda352448912e6d647.tar.bz2 |
[BranchRelaxation] Correct JumpToFT value
Toggle true/false values of the JumpToFallThrough
parameter to simplify code and make it consistent
with the documentation for the `getFallThrough(..)`
method.
Reviewed By: bcahoon
Differential Revision: https://reviews.llvm.org/D148139
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 5ef377f..47a475a 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -975,8 +975,8 @@ MachineBasicBlock *MachineBasicBlock::getFallThrough(bool JumpToFallThrough) { // If there is some explicit branch to the fallthrough block, it can obviously // reach, even though the branch should get folded to fall through implicitly. - if (!JumpToFallThrough && (MachineFunction::iterator(TBB) == Fallthrough || - MachineFunction::iterator(FBB) == Fallthrough)) + if (JumpToFallThrough && (MachineFunction::iterator(TBB) == Fallthrough || + MachineFunction::iterator(FBB) == Fallthrough)) return &*Fallthrough; // If it's an unconditional branch to some block not the fall through, it |