[llvm] r362022 - [LoopIdiomRecognize][NFC] Use DEBUG_TYPE, add LLVM_DEBUG() to runOnNoncountableLoop()
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 13:11:53 PDT 2019
Author: lebedevri
Date: Wed May 29 13:11:53 2019
New Revision: 362022
URL: http://llvm.org/viewvc/llvm-project?rev=362022&view=rev
Log:
[LoopIdiomRecognize][NFC] Use DEBUG_TYPE, add LLVM_DEBUG() to runOnNoncountableLoop()
Split off from D61144
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp?rev=362022&r1=362021&r2=362022&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp Wed May 29 13:11:53 2019
@@ -312,9 +312,10 @@ bool LoopIdiomRecognize::runOnCountableL
SmallVector<BasicBlock *, 8> ExitBlocks;
CurLoop->getUniqueExitBlocks(ExitBlocks);
- LLVM_DEBUG(dbgs() << "loop-idiom Scanning: F["
+ LLVM_DEBUG(dbgs() << DEBUG_TYPE " Scanning: F["
<< CurLoop->getHeader()->getParent()->getName()
- << "] Loop %" << CurLoop->getHeader()->getName() << "\n");
+ << "] Countable Loop %" << CurLoop->getHeader()->getName()
+ << "\n");
bool MadeChange = false;
@@ -1107,6 +1108,11 @@ bool LoopIdiomRecognize::avoidLIRForMult
}
bool LoopIdiomRecognize::runOnNoncountableLoop() {
+ LLVM_DEBUG(dbgs() << DEBUG_TYPE " Scanning: F["
+ << CurLoop->getHeader()->getParent()->getName()
+ << "] Noncountable Loop %"
+ << CurLoop->getHeader()->getName() << "\n");
+
return recognizePopcount() || recognizeAndInsertFFS();
}
More information about the llvm-commits
mailing list