Add a comment for a todo in LoopUnroll post cleanup

llvm-svn: 290769
This commit is contained in:
Philip Reames 2016-12-30 22:10:19 +00:00
parent fdbb05b469
commit fac031a178
1 changed files with 5 additions and 0 deletions

View File

@ -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;