From 8891ea4eac12b8f48934d47f2d99da1e9b455788 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 1 Dec 2023 14:47:37 +0000 Subject: Put branch profiling under a flag. Until we evaluate its usefulness and reduce its overhead. Bug: 306638020 Test: test.py Change-Id: Ibb01c70a7ea19b03802dcc1b0792d3d2ff4f4d67 --- compiler/optimizing/nodes.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'compiler/optimizing/nodes.h') 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 { void RemoveEnvironmentUsers(); bool IsEmittedAtUseSite() const { return GetPackedFlag(); } - 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(true); - } + void MarkEmittedAtUseSite() { SetPackedFlag(true); } protected: // If set, the machine code for this instruction is assumed to be generated by -- cgit v1.2.3-59-g8ed1b