mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
[NFC] LoopRotate: do issue debug message when not rotating due to instr count
It is somewhat problematic to notice this issue otherwise.
This commit is contained in:
parent
073bd0817b
commit
03550daa9f
@ -314,8 +314,14 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
|
||||
L->dump());
|
||||
return Rotated;
|
||||
}
|
||||
if (Metrics.NumInsts > MaxHeaderSize)
|
||||
if (Metrics.NumInsts > MaxHeaderSize) {
|
||||
LLVM_DEBUG(dbgs() << "LoopRotation: NOT rotating - contains "
|
||||
<< Metrics.NumInsts
|
||||
<< " instructions, which is more than the threshold ("
|
||||
<< MaxHeaderSize << " instructions): ";
|
||||
L->dump());
|
||||
return Rotated;
|
||||
}
|
||||
}
|
||||
|
||||
// Now, this loop is suitable for rotation.
|
||||
|
Loading…
Reference in New Issue
Block a user