[PATCH] D86262: [LoopIdiomRecognizePass] Options to disable part or the entire Loop Idiom Recognize Pass
Rafik Zurob via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 04:14:30 PDT 2020
rzurob added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp:117
+
+static cl::opt<DisableKind> DisableLIRP(
+ "disable-" DEBUG_TYPE, cl::ReallyHidden,
----------------
Based on this option, if a user doesn't want loops to be converted to memcpy or memset, they should specify `--disable-loop-idiom=all`. But what if another idiom is added to the LoopIdiomRecognize pass in the future? `--disable-loop-idiom=all` will presumably disable more than what the user asked for.
Would it be possible to handle multiple `--disable-loop-idiom=<something>` options cumulatively? If not, does it make sense to just provide one option to disable the memcpy+memset transformation (i.e. both or neither) instead of this option with all/none/memcpy/memset fine-grain control?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86262/new/
https://reviews.llvm.org/D86262
More information about the llvm-commits
mailing list