diff --git a/lib/Target/AMDGPU/GCNHazardRecognizer.cpp b/lib/Target/AMDGPU/GCNHazardRecognizer.cpp index f27da92b34fda..9ac1920a92022 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);