[PATCH] D45374: [LoopUnroll] Limit peeling to conds in BBs executed on every iteration.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 12:46:19 PDT 2018


efriedma added a comment.
Herald added a subscriber: zzheng.

You get some of the benefit of peeling whether or not the condition dominates the latch: both the peeled iterations and the remaining loop become simpler because the check disappears, and presumably that codepath is executed at least some of the time.  But maybe that doesn't help enough to be worth doing?  I'd like to understand the motivation a bit more.


https://reviews.llvm.org/D45374





More information about the llvm-commits mailing list