summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-01-15 20:00:12 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-01-15 20:00:12 +0000
commit33cc8d6b55ca5e1275d0984860f5d4f36f84f356 (patch)
treead9744a27852980c9bb2b81a812d9290052b62c2 /lib/CodeGen/MachineBasicBlock.cpp
parent057d53993c8f5ae3b5d8b5357c8c1ec6cc6d63ee (diff)
downloadllvm-33cc8d6b55ca5e1275d0984860f5d4f36f84f356.tar.gz
llvm-33cc8d6b55ca5e1275d0984860f5d4f36f84f356.tar.bz2
llvm-33cc8d6b55ca5e1275d0984860f5d4f36f84f356.tar.xz
Don't make changes to the MBB in MachineBasicBlock::canFallThrough().
This fixes the regression for -pre-regalloc-taildup in MultiSource/Applications/lambda-0.1.3. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index e2ce642cfd..124f793962 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/lib/CodeGen/MachineBasicBlock.cpp
@@ -378,7 +378,7 @@ bool MachineBasicBlock::canFallThrough() {
MachineBasicBlock *TBB = 0, *FBB = 0;
SmallVector<MachineOperand, 4> Cond;
const TargetInstrInfo *TII = getParent()->getTarget().getInstrInfo();
- if (TII->AnalyzeBranch(*this, TBB, FBB, Cond, true)) {
+ if (TII->AnalyzeBranch(*this, TBB, FBB, Cond)) {
// If we couldn't analyze the branch, examine the last instruction.
// If the block doesn't end in a known control barrier, assume fallthrough
// is possible. The isPredicable check is needed because this code can be