summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-09-29 18:05:19 +0000
committerOwen Anderson <resistor@mac.com>2010-09-29 18:05:19 +0000
commitd67ca0ed4c11e4f800dc601a572f6104263f3081 (patch)
treef3dd28e953bb9fc1b4420c0dd11b302839371d9c /llvm/lib/Transforms
parent2e566e040a5443c7a47294ef65acdf09e8ae71f2 (diff)
downloadbcm5719-llvm-d67ca0ed4c11e4f800dc601a572f6104263f3081.tar.gz
bcm5719-llvm-d67ca0ed4c11e4f800dc601a572f6104263f3081.zip
Revert r114919, which caused some serious regressions on ARM.
llvm-svn: 115053
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
index 99a38b1ed01..7da2b52da54 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
@@ -158,12 +158,7 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
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");
OpenPOWER on IntegriCloud