Skip to content

Commit 9bcff94

Browse files
authored
Merge pull request #232 from jdmpapin/splitPostGRA-switch-0.51
(0.51) In splitPostGRA(), find the GlRegDeps for switch children correctly
2 parents 3accaa1 + dae3c14 commit 9bcff94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/il/OMRBlock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ OMR::Block::splitPostGRA(TR::TreeTop * startOfNewBlock, TR::CFG *cfg, bool copyE
14181418
TR::Node *branch = node->getChild(i);
14191419
if (branch->getOpCode().isBranch() && branch->getNumChildren() > 0)
14201420
{
1421-
TR::Node *regDeps = node->getChild(node->getNumChildren() - 1);
1421+
TR::Node *regDeps = branch->getChild(branch->getNumChildren() - 1);
14221422
if (regDeps->getOpCodeValue() == TR::GlRegDeps)
14231423
{
14241424
gatherUnavailableRegisters(comp, regDeps, iter, nodeInfo, storeNodeInfo, &storeRegNodePostSplitPoint, unavailableRegisters);

0 commit comments

Comments
 (0)