projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b5ebd
)
[InstCombine] Modernize InstCombineOptions (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 19:43:02 +0000
(12:43 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 19:43:02 +0000
(12:43 -0700)
Identified with modernize-use-default-member-init.
llvm/include/llvm/Transforms/InstCombine/InstCombine.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Transforms/InstCombine/InstCombine.h
b/llvm/include/llvm/Transforms/InstCombine/InstCombine.h
index
9c6bcc6
..
557d0a4
100644
(file)
--- a/
llvm/include/llvm/Transforms/InstCombine/InstCombine.h
+++ b/
llvm/include/llvm/Transforms/InstCombine/InstCombine.h
@@
-28,11
+28,10
@@
namespace llvm {
static constexpr unsigned InstCombineDefaultMaxIterations = 1000;
struct InstCombineOptions {
- bool UseLoopInfo;
- unsigned MaxIterations;
+ bool UseLoopInfo
= false
;
+ unsigned MaxIterations
= InstCombineDefaultMaxIterations
;
- InstCombineOptions()
- : UseLoopInfo(false), MaxIterations(InstCombineDefaultMaxIterations) {}
+ InstCombineOptions() = default;
InstCombineOptions &setUseLoopInfo(bool Value) {
UseLoopInfo = Value;