[llvm] [InstrProf] Support conditional counter updates (PR #102542)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 10 16:00:15 PDT 2024


================
@@ -132,6 +132,11 @@ cl::opt<bool> AtomicFirstCounter(
              "the entry counter)"),
     cl::init(false));
 
+cl::opt<bool> ConditionalCounterUpdate(
+    "conditional-counter-update",
+    cl::desc("Do conditional counter updates in single byte counters mode)"),
+    cl::init(false));
----------------
petrhosek wrote:

Is there any reason why this shouldn't be enabled by default?
```suggestion
    cl::init(true));
```

https://github.com/llvm/llvm-project/pull/102542


More information about the llvm-commits mailing list