From c3dc8a434787285c29f3dfab79f3d8eb04608253 Mon Sep 17 00:00:00 2001 From: Marius Pirvu Date: Thu, 14 Oct 2021 12:50:04 -0400 Subject: [PATCH] Add new OptimizationPlan flag called DisableEDO This commit adds a new flag to the TR_OptimizationPlan data structure, called DisableEDO. The new flag will be used in an upstream project to control whether EDO (Exception Directed Optimization) is allowed for the current compilation. Signed-off-by: Marius Pirvu --- compiler/control/OptimizationPlan.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/control/OptimizationPlan.hpp b/compiler/control/OptimizationPlan.hpp index ce7bbb31455..55521575b81 100644 --- a/compiler/control/OptimizationPlan.hpp +++ b/compiler/control/OptimizationPlan.hpp @@ -165,6 +165,9 @@ class TR_OptimizationPlan bool isInducedByDLT() const { return _flags.testAny(InducedByDLT); } void setInducedByDLT(bool b) { _flags.set(InducedByDLT, b); } + bool getDisableEDO() const { return _flags.testAny(DisableEDO); } + void setDisableEDO(bool b) { _flags.set(DisableEDO, b); } + // -------------------------------------------------------------------------- // GPU // @@ -219,7 +222,8 @@ class TR_OptimizationPlan DontFailOnPurpose = 0x00100000, // Mostly needed to avoid failing for the purpose of upgrading to a higher opt level RelaxedCompilationLimits= 0x00200000, // Compilation can use larger limits because method is very very hot DowngradedDueToSamplingJProfiling=0x00400000, // Compilation was downgraded to cold just because we wanted to do JProfiling - InducedByDLT =0x00800000, // Compilation that follows a DLT compilation + InducedByDLT = 0x00800000, // Compilation that follows a DLT compilation + DisableEDO = 0x01000000, // Do not insert EDO profiling trees for this compilation }; private: TR_OptimizationPlan *_next; // to link events in the pool