[llvm] r268234 - Silence unused variable warnings; NFC.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 07:48:03 PDT 2016
Author: aaronballman
Date: Mon May 2 09:48:03 2016
New Revision: 268234
URL: http://llvm.org/viewvc/llvm-project?rev=268234&view=rev
Log:
Silence unused variable warnings; NFC.
Modified:
llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp?rev=268234&r1=268233&r2=268234&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp Mon May 2 09:48:03 2016
@@ -39,14 +39,12 @@ void GCNHazardRecognizer::EmitInstructio
ScheduleHazardRecognizer::HazardType
GCNHazardRecognizer::getHazardType(SUnit *SU, int Stalls) {
- const SIInstrInfo *TII =
- static_cast<const SIInstrInfo*>(MF.getSubtarget().getInstrInfo());
MachineInstr *MI = SU->getInstr();
- if (TII->isSMRD(*MI) && checkSMRDHazards(MI) > 0)
+ if (SIInstrInfo::isSMRD(*MI) && checkSMRDHazards(MI) > 0)
return NoopHazard;
- if (TII->isVMEM(*MI) && checkVMEMHazards(MI) > 0)
+ if (SIInstrInfo::isVMEM(*MI) && checkVMEMHazards(MI) > 0)
return NoopHazard;
return NoHazard;
@@ -57,13 +55,10 @@ unsigned GCNHazardRecognizer::PreEmitNoo
}
unsigned GCNHazardRecognizer::PreEmitNoops(MachineInstr *MI) {
- const SIInstrInfo *TII =
- static_cast<const SIInstrInfo*>(MF.getSubtarget().getInstrInfo());
-
- if (TII->isSMRD(*MI))
+ if (SIInstrInfo::isSMRD(*MI))
return std::max(0, checkSMRDHazards(MI));
- if (TII->isVMEM(*MI))
+ if (SIInstrInfo::isVMEM(*MI))
return std::max(0, checkVMEMHazards(MI));
return 0;
More information about the llvm-commits
mailing list