summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-03-24 23:37:10 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-03-24 23:37:10 +0000
commit5c73e1f85c5d37a5b037c70f3c112eec5646acb3 (patch)
treecf1eb4ad55c4752463a5e1408ba228555d16d03c /llvm/lib/Target/PowerPC
parent5a07bb8b5f64368fe35d32d9653b5157a0d4b18b (diff)
downloadbcm5719-llvm-5c73e1f85c5d37a5b037c70f3c112eec5646acb3.tar.gz
bcm5719-llvm-5c73e1f85c5d37a5b037c70f3c112eec5646acb3.zip
Disabling warnings for MSVC build to enable /W4 use.
Differential Revision: http://reviews.llvm.org/D8572 llvm-svn: 233133
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index 0a6be1ad747..5d461d5394e 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -113,9 +113,8 @@ int PPCInstrInfo::getOperandLatency(const InstrItineraryData *ItinData,
const MachineOperand &DefMO = DefMI->getOperand(DefIdx);
unsigned Reg = DefMO.getReg();
- const TargetRegisterInfo *TRI = &getRegisterInfo();
bool IsRegCR;
- if (TRI->isVirtualRegister(Reg)) {
+ if (TargetRegisterInfo::isVirtualRegister(Reg)) {
const MachineRegisterInfo *MRI =
&DefMI->getParent()->getParent()->getRegInfo();
IsRegCR = MRI->getRegClass(Reg)->hasSuperClassEq(&PPC::CRRCRegClass) ||
OpenPOWER on IntegriCloud