summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-12-30 22:10:19 +0000
committerPhilip Reames <listmail@philipreames.com>2016-12-30 22:10:19 +0000
commitfac031a178fffc354f887fc70396960add58857f (patch)
tree94ea970f6e0d2566b84796ea50f2c87b9e35677e /llvm/lib/Transforms
parentfdbb05b469648b058dd66cc11793d1f098509554 (diff)
downloadbcm5719-llvm-fac031a178fffc354f887fc70396960add58857f.tar.gz
bcm5719-llvm-fac031a178fffc354f887fc70396960add58857f.zip
Add a comment for a todo in LoopUnroll post cleanup
llvm-svn: 290769
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnroll.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
index 553a2049ae5..e551e4b47ac 100644
--- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
@@ -673,6 +673,11 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool Force,
}
}
+ // TODO: after peeling or unrolling, previously loop variant conditions are
+ // likely to fold to constants, eagerly propagating those here will require
+ // fewer cleanup passes to be run. Alternatively, a LoopEarlyCSE might be
+ // appropriate.
+
NumCompletelyUnrolled += CompletelyUnroll;
++NumUnrolled;
OpenPOWER on IntegriCloud