[llvm] r313942 - Fix unused variable warning.
Richard Trieu via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 16:48:01 PDT 2017
Author: rtrieu
Date: Thu Sep 21 16:48:01 2017
New Revision: 313942
URL: http://llvm.org/viewvc/llvm-project?rev=313942&view=rev
Log:
Fix unused variable warning.
Move function call into debug macro to suppress unused variable warning
in non-debug builds.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp?rev=313942&r1=313941&r2=313942&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp Thu Sep 21 16:48:01 2017
@@ -479,11 +479,10 @@ bool HexagonVectorLoopCarriedReuse::doVL
assert((CurLoop->getNumBlocks() == 1) &&
"Can do VLCR only on single block loops");
- BasicBlock *HdrB = CurLoop->getHeader();
bool Changed;
bool Continue;
- DEBUG(dbgs() << "Working on Loop: " << *HdrB << "\n");
+ DEBUG(dbgs() << "Working on Loop: " << *CurLoop->getHeader() << "\n");
do {
// Reset datastructures.
Dependences.clear();
More information about the llvm-commits
mailing list