[PATCH] D53440: [LoopUnroll] allow customization for new-pass-manager version of LoopUnroll
Fedor Sergeev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 19 13:29:01 PDT 2018
fedor.sergeev added inline comments.
================
Comment at: include/llvm/Transforms/Scalar/LoopUnrollPass.h:49
+ /// Selector for the optional behavior - Partial unrolling.
+ /// Call with \p Partial being true to enable, false to disable.
----------------
fedor.sergeev wrote:
> tejohnson wrote:
> > I think the usual mechanism for the new PM is to pass options to the pass constructor. E.g. see InlinerPass.
> I really dislike passing a bunch of booleans and then adding comments to name them, like all the callers of tryToUnrollLoop are doing. :(
I can do something similar to SimplifyCFGOptions, passing the object that describes options to the constructor.
Repository:
rL LLVM
https://reviews.llvm.org/D53440
More information about the llvm-commits
mailing list