[PATCH] D43876: [LoopUnroll] Peel off iterations if it makes conditions true/false.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 11:08:52 PDT 2018


efriedma added a comment.

> This is exactly the case we're dealing with here except FullPelBlockMotionBiPred isn't marked as internal until the LTO phase of compilation. Thus, one possible approach would be to defer peeling until the LTO phase. After r329392, this can be accomplished with a small change to the pass manager:

ThinLTO doesn't run vectorization or unrolling before link-time; among other reasons, it avoids problems like this.  You might want to consider making non-thin LTO work the same way.


Repository:
  rL LLVM

https://reviews.llvm.org/D43876





More information about the llvm-commits mailing list