Skip to content

Commit

Permalink
Add new OptimizationPlan flag called DisableEDO
Browse files Browse the repository at this point in the history
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 <mpirvu@ca.ibm.com>
  • Loading branch information
mpirvu committed Oct 14, 2021
1 parent 0b1aa7d commit c3dc8a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/control/OptimizationPlan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c3dc8a4

Please sign in to comment.