From d80450e58dc4945c40d4d0b14e934832063a3e7c Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 3 May 2016 15:17:25 +0000 Subject: [PATCH] Silence unused variable warning; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268392 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/GCNHazardRecognizer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/AMDGPU/GCNHazardRecognizer.cpp b/lib/Target/AMDGPU/GCNHazardRecognizer.cpp index f27da92b34fd..9ac1920a9202 100644 --- a/lib/Target/AMDGPU/GCNHazardRecognizer.cpp +++ b/lib/Target/AMDGPU/GCNHazardRecognizer.cpp @@ -157,7 +157,6 @@ int GCNHazardRecognizer::checkSMEMSoftClauseHazards(MachineInstr *SMEM) { // (including itself). If we encounter this situaion, we need to break the // clause by inserting a non SMEM instruction. - const SIInstrInfo *TII = static_cast(ST.getInstrInfo()); std::set ClauseDefs; std::set ClauseUses; @@ -165,7 +164,7 @@ int GCNHazardRecognizer::checkSMEMSoftClauseHazards(MachineInstr *SMEM) { // When we hit a non-SMEM instruction then we have passed the start of the // clause and we can stop. - if (!MI || !TII->isSMRD(*MI)) + if (!MI || !SIInstrInfo::isSMRD(*MI)) break; addRegsToSet(MI->defs(), ClauseDefs);