diff options
author | 2023-12-01 14:47:37 +0000 | |
---|---|---|
committer | 2023-12-04 10:35:16 +0000 | |
commit | 8891ea4eac12b8f48934d47f2d99da1e9b455788 (patch) | |
tree | 00b523efef48ab608779156af751e1bf38c70091 /compiler/optimizing/nodes.h | |
parent | f51e433b5d32cb83eb2ee302544ecf67a10525b9 (diff) |
Put branch profiling under a flag.
Until we evaluate its usefulness and reduce its overhead.
Bug: 306638020
Test: test.py
Change-Id: Ibb01c70a7ea19b03802dcc1b0792d3d2ff4f4d67
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 4db72a68e3..6ec83beabd 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -2663,12 +2663,7 @@ class HInstruction : public ArenaObject<kArenaAllocInstruction> { void RemoveEnvironmentUsers(); bool IsEmittedAtUseSite() const { return GetPackedFlag<kFlagEmittedAtUseSite>(); } - void MarkEmittedAtUseSite() { - // When compiling baseline, in order to do branch profiling, we don't want to - // emit conditions at use site. - DCHECK(!IsCondition() || !GetBlock()->GetGraph()->IsCompilingBaseline()); - SetPackedFlag<kFlagEmittedAtUseSite>(true); - } + void MarkEmittedAtUseSite() { SetPackedFlag<kFlagEmittedAtUseSite>(true); } protected: // If set, the machine code for this instruction is assumed to be generated by |