Skip to content

Commit

Permalink
Add a comment for a todo in LoopUnroll post cleanup
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290769 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
preames committed Dec 30, 2016
1 parent ef2b74a commit 4194070
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Transforms/Utils/LoopUnroll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4194070

Please sign in to comment.