diff options
| author | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-07-27 17:55:33 +0000 |
|---|---|---|
| committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-07-27 17:55:33 +0000 |
| commit | 9155354ff2445fa0d4442ada7d42eac38aef7f85 (patch) | |
| tree | f6345fa9dfa32955b778458efb8f0a2a5aa3266f /llvm/lib/CodeGen | |
| parent | 8d2f52e035ceb361d3410d2b76b48a287c529356 (diff) | |
| download | bcm5719-llvm-9155354ff2445fa0d4442ada7d42eac38aef7f85.tar.gz bcm5719-llvm-9155354ff2445fa0d4442ada7d42eac38aef7f85.zip | |
Revert EH-specific checks in BranchFolding that were causing blow ups in compile time.
Differential Revision: https://reviews.llvm.org/D22839
llvm-svn: 276898
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index fa705761645..d2ffd214b28 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -1595,14 +1595,6 @@ ReoptimizeBlock: // removed, move this block to the end of the function. MachineBasicBlock *PrevTBB = nullptr, *PrevFBB = nullptr; SmallVector<MachineOperand, 4> PrevCond; - // We're looking for cases where PrevBB could possibly fall through to - // FallThrough, but if FallThrough is an EH pad that wouldn't be useful - // so here we skip over any EH pads so we might have a chance to find - // a branch target from PrevBB. - while (FallThrough != MF.end() && FallThrough->isEHPad()) - ++FallThrough; - // Now check to see if the current block is sitting between PrevBB and - // a block to which it could fall through. if (FallThrough != MF.end() && !TII->analyzeBranch(PrevBB, PrevTBB, PrevFBB, PrevCond, true) && PrevBB.isSuccessor(&*FallThrough)) { |

