Skip to content

Commit

Permalink
Don't use once read symbol heuristics in UseDef at warm
Browse files Browse the repository at this point in the history
    - Use onceReadSymbolsIndices at < warm since it helps performance
      without considerably increasing compile time
  • Loading branch information
gita-omr committed Jul 7, 2021
1 parent e17ff9e commit 66d9bde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/optimizer/UseDefInfo.cpp
Expand Up @@ -152,9 +152,10 @@ void TR_UseDefInfo::prepareUseDefInfo(bool requiresGlobals, bool prefersGlobals,
TR::SymbolReferenceTable *symRefTab = comp()->getSymRefTab();
int32_t numSymRefs = comp()->getSymRefCount();


if (_hasLoadsAsDefs &&
!cannotOmitTrivialDefs &&
(comp()->getMethodHotness() < hot))
(comp()->getMethodHotness() < warm))
{
for (int32_t j = 0; j < numSymRefs; j++)
{
Expand Down

0 comments on commit 66d9bde

Please sign in to comment.