aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-01-26 18:24:25 +0000
committerChad Rosier <mcrosier@apple.com>2012-01-26 18:24:25 +0000
commit1a1531d65ee5dc9e025be69ab35ca0406a0c6ea0 (patch)
tree244a5abc35d9829896c972429f127ebfd61fe7ea /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent8c139a51259aed287c5e2c16bd10d799a25d43dd (diff)
downloadllvm-1a1531d65ee5dc9e025be69ab35ca0406a0c6ea0.zip
llvm-1a1531d65ee5dc9e025be69ab35ca0406a0c6ea0.tar.gz
llvm-1a1531d65ee5dc9e025be69ab35ca0406a0c6ea0.tar.bz2
Replace the use of isPredicable() with isPredicated() in
MachineBasicBlock::canFallThrough(). We're interested in the state of the instruction (i.e., is this a barrier or not?), not if the instruction is predicable or not. rdar://10501092 llvm-svn: 149070
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index b4a2ca1..0205c0a 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -535,13 +535,12 @@ bool MachineBasicBlock::canFallThrough() {
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
+ // is possible. The isPredicated check is needed because this code can be
// called during IfConversion, where an instruction which is normally a
// Barrier is predicated and thus no longer an actual control barrier. This
// is over-conservative though, because if an instruction isn't actually
// predicated we could still treat it like a barrier.
- return empty() || !back().isBarrier() ||
- back().isPredicable();
+ return empty() || !back().isBarrier() || TII->isPredicated(&back());
}
// If there is no branch, control always falls through.