Skip to content

Commit

Permalink
Merge pull request #4027 from cathyzhyi/splitblock
Browse files Browse the repository at this point in the history
Create known object temps when splitting block
  • Loading branch information
0xdaryl authored Jun 18, 2019
2 parents 4421e78 + b00f645 commit 10899d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/optimizer/Inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3117,6 +3117,9 @@ TR_HandleInjectedBasicBlock::createTemps(bool replaceAllReferences)
value = valueToTempConv;
}

if (value->getOpCode().hasSymbolReference() && value->getSymbolReference()->hasKnownObjectIndex())
symRef = comp()->getSymRefTab()->findOrCreateTemporaryWithKnowObjectIndex(_methodSymbol, value->getSymbolReference()->getKnownObjectIndex());

OMR_InlinerUtil::storeValueInATemp(comp(), value, symRef, tt, _methodSymbol, _injectedBasicBlockTemps, _availableTemps, 0);
}

Expand Down

0 comments on commit 10899d5

Please sign in to comment.