Skip to content

Commit

Permalink
Merge pull request #7194 from jdmpapin/hcr-guard-versioning
Browse files Browse the repository at this point in the history
Correct branch folding for HCR guard versioning
  • Loading branch information
vijaysun-omr authored Dec 10, 2023
2 parents 137778a + 63a9134 commit 149b524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/optimizer/LoopVersioner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4593,7 +4593,7 @@ void TR_LoopVersioner::versionNaturalLoop(TR_RegionStructure *whileLoop, List<TR
comparisonTrees.add(guard);

bool reverseBranch = false, origLoop = true;
FoldConditional fold(this, NULL, guard, reverseBranch, origLoop);
FoldConditional fold(this, NULL, tt->getNode(), reverseBranch, origLoop);
fold.improveLoop();
}
}
Expand Down

0 comments on commit 149b524

Please sign in to comment.