summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-05 00:44:40 +0000
committerDan Gohman <gohman@apple.com>2009-12-05 00:44:40 +0000
commit047a767d745eebfe80743603530622f0aa775540 (patch)
treeddab61210dacd0d33679cd2250d37b519c5368ed /llvm/lib/CodeGen/BranchFolding.cpp
parent0b44cb0d78759c299f39022b184dce05c7468b9f (diff)
downloadbcm5719-llvm-047a767d745eebfe80743603530622f0aa775540.tar.gz
bcm5719-llvm-047a767d745eebfe80743603530622f0aa775540.zip
Remove the target hook TargetInstrInfo::BlockHasNoFallThrough in favor of
MachineBasicBlock::canFallThrough(), which is target-independent and more thorough. llvm-svn: 90634
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index 9fd95fde635..3887e6d44e4 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -1140,7 +1140,7 @@ ReoptimizeBlock:
// falls through into MBB and we can't understand the prior block's branch
// condition.
if (MBB->empty()) {
- bool PredHasNoFallThrough = TII->BlockHasNoFallThrough(PrevBB);
+ bool PredHasNoFallThrough = !PrevBB.canFallThrough();
if (PredHasNoFallThrough || !PriorUnAnalyzable ||
!PrevBB.isSuccessor(MBB)) {
// If the prior block falls through into us, turn it into an
OpenPOWER on IntegriCloud