Skip to content

Commit

Permalink
Move postDominators allocation to heap
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Verma <shubhamv.sv@gmail.com>
  • Loading branch information
VermaSh committed Nov 11, 2020
1 parent cb2c463 commit abc0d12
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions compiler/optimizer/LoopCanonicalizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1966,12 +1966,9 @@ void TR_LoopCanonicalizer::eliminateRedundantInductionVariablesFromLoop(TR_Regio

static bool disableIVEPostDominatorsCheck = (comp()->cg()->hasComplexAddressingMode()
|| NULL != feGetEnv("TR_DisableIVEPostDominatorsCheck"));
TR_PostDominators *postDominators;
TR_PostDominators *postDominators = NULL;
if (!disableIVEPostDominatorsCheck)
{
TR_PostDominators computedPostDominators(comp());
postDominators = &computedPostDominators;
}
postDominators = new (comp()->trHeapMemory()) TR_PostDominators(comp());

//ListIterator<TR_InductionVariable> derivedIt(&derivedInductionVariables);
// Iterate over all derived induction variables and check if they can be replaced
Expand Down

0 comments on commit abc0d12

Please sign in to comment.