diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-12-09 06:41:08 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-12-09 06:41:08 +0000 |
| commit | feb9f27de1ae567fce8732d6d1aad999fbfb7f92 (patch) | |
| tree | 80a705e5141096207b4a92e77f61d1eb3ecddac9 /llvm/lib/Target | |
| parent | 557cda7f1d3fc13e04c7a7c82a1d4b5d410f9847 (diff) | |
| download | bcm5719-llvm-feb9f27de1ae567fce8732d6d1aad999fbfb7f92.tar.gz bcm5719-llvm-feb9f27de1ae567fce8732d6d1aad999fbfb7f92.zip | |
Move isUnpredicatedTerminator() default implementation to TargetInstrInfoImpl to break Target's dependency on CodeGen.
llvm-svn: 146247
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/TargetInstrInfo.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp index 2097a18cf72..c5fbbd22c42 100644 --- a/llvm/lib/Target/TargetInstrInfo.cpp +++ b/llvm/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 |

