From b5f8eff566ab35a15dcd5bf490047c7ccfcecce0 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 16 May 2007 20:50:23 +0000 Subject: [PATCH] Removed isPredicable(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37119 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrInfo.cpp | 9 --------- lib/Target/ARM/ARMInstrInfo.h | 1 - 2 files changed, 10 deletions(-) diff --git a/lib/Target/ARM/ARMInstrInfo.cpp b/lib/Target/ARM/ARMInstrInfo.cpp index de9ea48b265..b631124b6eb 100644 --- a/lib/Target/ARM/ARMInstrInfo.cpp +++ b/lib/Target/ARM/ARMInstrInfo.cpp @@ -423,15 +423,6 @@ ReverseBranchCondition(std::vector &Cond) const { return false; } -bool ARMInstrInfo::isPredicatable(MachineInstr *MI) const { - const TargetInstrDescriptor *TID = MI->getInstrDescriptor(); - if (TID->Flags & M_PREDICATED) - return true; - - unsigned Opc = MI->getOpcode(); - return Opc == ARM::B || Opc == ARM::tB; -} - void ARMInstrInfo::PredicateInstruction(MachineInstr *MI, std::vector &Cond) const { unsigned Opc = MI->getOpcode(); diff --git a/lib/Target/ARM/ARMInstrInfo.h b/lib/Target/ARM/ARMInstrInfo.h index d51b9bd74be..cb0b812e161 100644 --- a/lib/Target/ARM/ARMInstrInfo.h +++ b/lib/Target/ARM/ARMInstrInfo.h @@ -104,7 +104,6 @@ public: virtual bool ReverseBranchCondition(std::vector &Cond) const; // Predication support. - virtual bool isPredicatable(MachineInstr *MI) const; virtual void PredicateInstruction(MachineInstr *MI, std::vector &Cond) const; };