[PATCH] D110594: [SimpleLoopUnswitch] Allow threshold to be specified zero or more times
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 27 14:40:52 PDT 2021
ctetreau created this revision.
Herald added a subscriber: hiraditya.
ctetreau requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110594
Files:
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
Index: llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
+++ llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
@@ -81,6 +81,7 @@
static cl::opt<int>
UnswitchThreshold("unswitch-threshold", cl::init(50), cl::Hidden,
+ cl::ZeroOrMore,
cl::desc("The cost threshold for unswitching a loop."));
static cl::opt<bool> EnableUnswitchCostMultiplier(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110594.375411.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210927/9f44adb3/attachment.bin>
More information about the llvm-commits
mailing list