[llvm] 27abff6 - Remove unneeded cl::ZeroOrMore. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 19:11:33 PDT 2022
Author: Fangrui Song
Date: 2022-06-30T19:11:27-07:00
New Revision: 27abff670bc7ad9702c4f9fc8b82aae6b530bf0f
URL: https://github.com/llvm/llvm-project/commit/27abff670bc7ad9702c4f9fc8b82aae6b530bf0f
DIFF: https://github.com/llvm/llvm-project/commit/27abff670bc7ad9702c4f9fc8b82aae6b530bf0f.diff
LOG: Remove unneeded cl::ZeroOrMore. NFC
Added:
Modified:
llvm/lib/Analysis/InlineCost.cpp
mlir/docs/PassManagement.md
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index b7aa5356c4a5..e63497260e6e 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/lib/Analysis/InlineCost.cpp
@@ -128,7 +128,6 @@ static cl::opt<int> CallPenalty(
static cl::opt<size_t>
StackSizeThreshold("inline-max-stacksize", cl::Hidden,
cl::init(std::numeric_limits<size_t>::max()),
- cl::ZeroOrMore,
cl::desc("Do not inline functions with a stack size "
"that exceeds the specified limit"));
diff --git a/mlir/docs/PassManagement.md b/mlir/docs/PassManagement.md
index e0d2400b8a34..727166860e27 100644
--- a/mlir/docs/PassManagement.md
+++ b/mlir/docs/PassManagement.md
@@ -816,7 +816,7 @@ def MyPass : Pass<"my-pass", "ModuleOp"> {
Option<"option", "example-option", "bool", /*default=*/"true",
"An example option">,
ListOption<"listOption", "example-list", "int64_t",
- "An example list option", "llvm::cl::ZeroOrMore">
+ "An example list option">
];
// Specify any statistics.
@@ -952,7 +952,7 @@ The `ListOption` class takes the following fields:
def MyPass : Pass<"my-pass"> {
let options = [
ListOption<"listOption", "example-list", "int64_t",
- "An example list option", "llvm::cl::ZeroOrMore">
+ "An example list option">
];
}
```
More information about the llvm-commits
mailing list