Skip to content

Commit

Permalink
Silence unused variable warning; NFC.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268392 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
AaronBallman committed May 3, 2016
1 parent 21ed3fc commit d80450e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Target/AMDGPU/GCNHazardRecognizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,14 @@ 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;

for (MachineInstr *MI : EmittedInstrs) {

// 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);
Expand Down

0 comments on commit d80450e

Please sign in to comment.