Skip to content

Commit

Permalink
Remove unused IsInWarmCodeCache CodeGenerator flag and functions
Browse files Browse the repository at this point in the history
This flag is not used in OMR nor in any known downstream project.

Signed-off-by: Daryl Maier <[email protected]>
  • Loading branch information
0xdaryl committed Oct 20, 2017
1 parent 1e32373 commit fec12b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
6 changes: 0 additions & 6 deletions compiler/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,12 +1050,6 @@ OMR::CodeGenerator::getSupportsConstantOffsetInAddressing(int64_t value)
return self()->getSupportsConstantOffsetInAddressing();
}

bool
OMR::CodeGenerator::getIsInWarmCodeCache()
{
return _flags2.testAny(IsInWarmCodeCache) && !self()->isOutOfLineColdPath();
}

void
OMR::CodeGenerator::toggleIsInOOLSection()
{
Expand Down
6 changes: 1 addition & 5 deletions compiler/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1640,10 +1640,6 @@ class OMR_EXTENSIBLE CodeGenerator
void incOutOfLineColdPathNestedDepth(){_outOfLineColdPathNestedDepth++;}
void decOutOfLineColdPathNestedDepth(){_outOfLineColdPathNestedDepth--;}

bool getIsInWarmCodeCache();
void setIsInWarmCodeCache() {_flags2.set(IsInWarmCodeCache);}
void resetIsInWarmCodeCache() {_flags2.reset(IsInWarmCodeCache);}

bool getMethodModifiedByRA() {return _flags2.testAny(MethodModifiedByRA);}
void setMethodModifiedByRA() {_flags2.set(MethodModifiedByRA);}
void resetMethodModifiedByRA() {_flags2.reset(MethodModifiedByRA);}
Expand Down Expand Up @@ -1750,7 +1746,7 @@ class OMR_EXTENSIBLE CodeGenerator
SupportsReverseLoadAndStore = 0x00400000,
SupportsLoweringConstLDivPower2 = 0x00800000,
DisableFpGRA = 0x01000000,
IsInWarmCodeCache = 0x02000000,
// Available = 0x02000000,
MethodModifiedByRA = 0x04000000,
SchedulingInstrCleanupNeeded = 0x08000000,
// Available = 0x10000000,
Expand Down

0 comments on commit fec12b0

Please sign in to comment.