From: Evan Cheng Date: Wed, 16 May 2007 20:50:23 +0000 (+0000) Subject: Removed isPredicable(). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b5f8eff566ab35a15dcd5bf490047c7ccfcecce0;p=oota-llvm.git Removed isPredicable(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37119 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; };