git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115053
91177308-0d34-0410-b5e6-
96231b3b80d8
DEBUG(dbgs() << " Not unrolling loop with inlinable calls.\n");
return false;
}
DEBUG(dbgs() << " Not unrolling loop with inlinable calls.\n");
return false;
}
-
- // NOTE: We multiply by the loop depth because unrolling inner loops of
- // very deep nests tends to result in high register pressure, which we don't
- // currently recover from very well. When and if the register allocator/
- // spiller improves to compensate, this should be re-evaluated.
- uint64_t Size = (uint64_t)LoopSize*Count*L->getLoopDepth();
+ uint64_t Size = (uint64_t)LoopSize*Count;
if (TripCount != 1 && Size > CurrentThreshold) {
DEBUG(dbgs() << " Too large to fully unroll with count: " << Count
<< " because size: " << Size << ">" << CurrentThreshold << "\n");
if (TripCount != 1 && Size > CurrentThreshold) {
DEBUG(dbgs() << " Too large to fully unroll with count: " << Count
<< " because size: " << Size << ">" << CurrentThreshold << "\n");