summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-25 22:21:37 +0000
committerChris Lattner <sabre@nondot.org>2006-10-25 22:21:37 +0000
commit0d4479b77dea6812baaec88f30fec2d8f69a3696 (patch)
tree8437d6b691193e60ed949336c51a3c89f5198c83 /llvm/lib
parentf8e7d8ce99fd6240a4f808e2366caab2666338e1 (diff)
downloadbcm5719-llvm-0d4479b77dea6812baaec88f30fec2d8f69a3696.tar.gz
bcm5719-llvm-0d4479b77dea6812baaec88f30fec2d8f69a3696.zip
simplify code
llvm-svn: 31188
Diffstat (limited to 'llvm/lib')
-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 202f986bd2e..5cad24845de 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -417,7 +417,7 @@ static bool CanFallThrough(MachineBasicBlock *TBB,
// Otherwise, if it is conditional and has no explicit false block, it falls
// through.
- return !Cond.empty() && FBB == 0;
+ return FBB == 0;
}
/// OptimizeBlock - Analyze and optimize control flow related to the specified
OpenPOWER on IntegriCloud