diff options
author | Philip Reames <listmail@philipreames.com> | 2016-12-30 22:10:19 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2016-12-30 22:10:19 +0000 |
commit | fac031a178fffc354f887fc70396960add58857f (patch) | |
tree | 94ea970f6e0d2566b84796ea50f2c87b9e35677e /llvm/lib/Transforms | |
parent | fdbb05b469648b058dd66cc11793d1f098509554 (diff) | |
download | bcm5719-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.cpp | 5 |
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; |