forked from OSchip/llvm-project
[LoopIdiomRecognize][NFC] Use DEBUG_TYPE, add LLVM_DEBUG() to runOnNoncountableLoop()
Split off from D61144 llvm-svn: 362022
This commit is contained in:
parent
d80024c687
commit
95dec50a35
|
@ -312,9 +312,10 @@ bool LoopIdiomRecognize::runOnCountableLoop() {
|
||||||
SmallVector<BasicBlock *, 8> ExitBlocks;
|
SmallVector<BasicBlock *, 8> ExitBlocks;
|
||||||
CurLoop->getUniqueExitBlocks(ExitBlocks);
|
CurLoop->getUniqueExitBlocks(ExitBlocks);
|
||||||
|
|
||||||
LLVM_DEBUG(dbgs() << "loop-idiom Scanning: F["
|
LLVM_DEBUG(dbgs() << DEBUG_TYPE " Scanning: F["
|
||||||
<< CurLoop->getHeader()->getParent()->getName()
|
<< CurLoop->getHeader()->getParent()->getName()
|
||||||
<< "] Loop %" << CurLoop->getHeader()->getName() << "\n");
|
<< "] Countable Loop %" << CurLoop->getHeader()->getName()
|
||||||
|
<< "\n");
|
||||||
|
|
||||||
bool MadeChange = false;
|
bool MadeChange = false;
|
||||||
|
|
||||||
|
@ -1107,6 +1108,11 @@ bool LoopIdiomRecognize::avoidLIRForMultiBlockLoop(bool IsMemset,
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoopIdiomRecognize::runOnNoncountableLoop() {
|
bool LoopIdiomRecognize::runOnNoncountableLoop() {
|
||||||
|
LLVM_DEBUG(dbgs() << DEBUG_TYPE " Scanning: F["
|
||||||
|
<< CurLoop->getHeader()->getParent()->getName()
|
||||||
|
<< "] Noncountable Loop %"
|
||||||
|
<< CurLoop->getHeader()->getName() << "\n");
|
||||||
|
|
||||||
return recognizePopcount() || recognizeAndInsertFFS();
|
return recognizePopcount() || recognizeAndInsertFFS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue