diff options
author | Mark Searles <m.c.searles@gmail.com> | 2018-05-30 16:27:57 +0000 |
---|---|---|
committer | Mark Searles <m.c.searles@gmail.com> | 2018-05-30 16:27:57 +0000 |
commit | b7ba560cf933f44e7c0026b02019efb80c1994e5 (patch) | |
tree | 05bd0c542f83db579ece6fc77a21f4d68ff30618 | |
parent | 664e38cb13821098174475b39625f2216ae3d656 (diff) |
[AMDGPU][Waitcnt] Fix build error: unused variable 'SWaitInst'
https://reviews.llvm.org/rL333556 caused a buildbot failure.
See http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/21876/steps/build_Lld/logs/stdio
/Users/buildslave/as-bldslv9/lld-x86_64-darwin13/llvm.src/lib/Target/AMDGPU/SIInsertWaitcnts.cpp:2007:10: error: unused variable 'SWaitInst' [-Werror,-Wunused-variable]
auto SWaitInst = BuildMI(EntryBB, EntryBB.getFirstNonPHI(),
The unused variable was for debugging purposes; removing that piece of code
to fix the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333559 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/AMDGPU/SIInsertWaitcnts.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/lib/Target/AMDGPU/SIInsertWaitcnts.cpp index 37fecd6ab96..e0e07a937e0 100644 --- a/lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ b/lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -2004,12 +2004,8 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) { // TODO: Could insert earlier and schedule more liberally with operations // that only use caller preserved registers. MachineBasicBlock &EntryBB = MF.front(); - auto SWaitInst = BuildMI(EntryBB, EntryBB.getFirstNonPHI(), - DebugLoc(), TII->get(AMDGPU::S_WAITCNT)) - .addImm(0); - - LLVM_DEBUG(dbgs() << "insertWaitcntInBlock\n" - << "New Instr: " << *SWaitInst << '\n'); + BuildMI(EntryBB, EntryBB.getFirstNonPHI(), DebugLoc(), TII->get(AMDGPU::S_WAITCNT)) + .addImm(0); Modified = true; } |