summaryrefslogtreecommitdiff
path: root/lib/Target/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-12-09 06:41:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-12-09 06:41:08 +0000
commit32f9763017f4329a0da75648655d63c9d7b91130 (patch)
treef185982bb79d90ec97053f0c4ee3a5ec7a73c31f /lib/Target/TargetInstrInfo.cpp
parent85abb2700d7791bcfa022fe8765df72929256d20 (diff)
downloadllvm-32f9763017f4329a0da75648655d63c9d7b91130.tar.gz
llvm-32f9763017f4329a0da75648655d63c9d7b91130.tar.bz2
llvm-32f9763017f4329a0da75648655d63c9d7b91130.tar.xz
Move isUnpredicatedTerminator() default implementation to TargetInstrInfoImpl to break Target's dependency on CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetInstrInfo.cpp')
-rw-r--r--lib/Target/TargetInstrInfo.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp
index 2097a18cf7..c5fbbd22c4 100644
--- a/lib/Target/TargetInstrInfo.cpp
+++ b/lib/Target/TargetInstrInfo.cpp
@@ -129,18 +129,6 @@ void TargetInstrInfo::insertNoop(MachineBasicBlock &MBB,
}
-bool TargetInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const {
- if (!MI->isTerminator()) return false;
-
- // Conditional branch is a special case.
- if (MI->isBranch() && !MI->isBarrier())
- return true;
- if (!MI->isPredicable())
- return true;
- return !isPredicated(MI);
-}
-
-
/// Measure the specified inline asm to determine an approximation of its
/// length.
/// Comments (which run till the next SeparatorString or newline) do not