diff options
author | Daniel Hoekwater <hoekwater@google.com> | 2023-08-24 16:58:19 +0000 |
---|---|---|
committer | Daniel Hoekwater <hoekwater@google.com> | 2023-08-24 16:59:17 +0000 |
commit | 4c8d056f50342d5401f5930ed60e5e48b211c3fb (patch) | |
tree | b93d54d1e9b002473fe60427a341149d9a52b151 /llvm/lib/CodeGen/BasicBlockSections.cpp | |
parent | 14c87ab7635ae151621b5e28aeff101235a0435f (diff) | |
download | llvm-4c8d056f50342d5401f5930ed60e5e48b211c3fb.zip llvm-4c8d056f50342d5401f5930ed60e5e48b211c3fb.tar.gz llvm-4c8d056f50342d5401f5930ed60e5e48b211c3fb.tar.bz2 |
Revert "[CodeGen] Fix unconditional branch duplication issue in bbsections"
This reverts commit 994eb5adc40cd001d82d0f95d18d1827b57e496c.
Breaks buildbot `llvm-clang-x86_64-expensive-checks-debian`
https://lab.llvm.org/buildbot/#/builders/16/builds/53620
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BasicBlockSections.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BasicBlockSections.cpp b/llvm/lib/CodeGen/BasicBlockSections.cpp index de7c170..33e70b1 100644 --- a/llvm/lib/CodeGen/BasicBlockSections.cpp +++ b/llvm/lib/CodeGen/BasicBlockSections.cpp @@ -258,8 +258,7 @@ void llvm::sortBasicBlocksAndUpdateBranches( [[maybe_unused]] const MachineBasicBlock *EntryBlock = &MF.front(); SmallVector<MachineBasicBlock *> PreLayoutFallThroughs(MF.getNumBlockIDs()); for (auto &MBB : MF) - PreLayoutFallThroughs[MBB.getNumber()] = - MBB.getFallThrough(/*JumpToFallThrough=*/false); + PreLayoutFallThroughs[MBB.getNumber()] = MBB.getFallThrough(); MF.sort(MBBCmp); assert(&MF.front() == EntryBlock && |