summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp b/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
index f27da92b34f..9ac1920a920 100644
--- a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+++ b/llvm/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<const SIInstrInfo*>(ST.getInstrInfo());
std::set<unsigned> ClauseDefs;
std::set<unsigned> 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);
OpenPOWER on IntegriCloud