mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Tidy some LSR debug output: announce the loop it's about to process
before it does any processing. llvm-svn: 66443
This commit is contained in:
parent
8d01b15f19
commit
ddec04d564
@ -2606,6 +2606,12 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {
|
||||
AddUsersIfInteresting(I, L, Processed);
|
||||
|
||||
if (!IVUsesByStride.empty()) {
|
||||
#ifndef NDEBUG
|
||||
DOUT << "\nLSR on \"" << L->getHeader()->getParent()->getNameStart()
|
||||
<< "\" ";
|
||||
DEBUG(L->dump());
|
||||
#endif
|
||||
|
||||
// Optimize induction variables. Some indvar uses can be transformed to use
|
||||
// strides that will be needed for other purposes. A common example of this
|
||||
// is the exit test for the loop, which can often be rewritten to use the
|
||||
@ -2625,12 +2631,6 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {
|
||||
// things.
|
||||
bool HasOneStride = IVUsesByStride.size() == 1;
|
||||
|
||||
#ifndef NDEBUG
|
||||
DOUT << "\nLSR on \"" << L->getHeader()->getParent()->getNameStart()
|
||||
<< "\" ";
|
||||
DEBUG(L->dump());
|
||||
#endif
|
||||
|
||||
// IVsByStride keeps IVs for one particular loop.
|
||||
assert(IVsByStride.empty() && "Stale entries in IVsByStride?");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user