Skip to content

Commit

Permalink
Merge pull request #20588 from a7ehuo/techdebt-cleanup-opcode-comments-5
Browse files Browse the repository at this point in the history
Clean up references to old opcodes
  • Loading branch information
hzongaro authored Nov 15, 2024
2 parents aadbf00 + cec7421 commit 30601f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/compiler/ilgen/Walker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4927,7 +4927,7 @@ TR_J9ByteCodeIlGenerator::runMacro(TR::SymbolReference * symRef)
push(array);
loadConstant(TR::iconst, i);
push(arg);
storeArrayElement(arg->getDataType()); // TODO:JSR292: use isstore for char arguments
storeArrayElement(arg->getDataType()); // TODO:JSR292: use sstorei for char arguments
}
argShepherd->removeAllChildren();
push(array);
Expand Down
4 changes: 2 additions & 2 deletions runtime/compiler/optimizer/InlinerTempForJ9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1375,13 +1375,13 @@ while the direct access code looks like
iloadi
aiadd
We will replace b2i and bloadi by c2iu and icload for Unsafe.getChar, by
s2i and isload for Unsafe.getShort, and by bu2i and bloadi for Unsafe.getBoolean
s2i and sloadi for Unsafe.getShort, and by bu2i and bloadi for Unsafe.getBoolean
For Unsafe.putByte and Unsafe.putBoolean, we generate
bstorei
i2b
<some load node>
We replace i2b and bstorei by i2c and icstore for Unsafe.getChar, and by i2s and isstore for
We replace i2b and bstorei by i2c and icstore for Unsafe.getChar, and by i2s and sstorei for
Unsafe.getShort.
*/

Expand Down
2 changes: 1 addition & 1 deletion runtime/compiler/optimizer/J9Simplifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ J9::Simplifier::simplifyi2sPatterns(TR::Node *node)
if (firstChild->getOpCodeValue() == TR::ior &&
firstChild->getReferenceCount() == 1 &&
(address = getOrOfTwoConsecutiveBytes(firstChild)) &&
performTransformation(comp(), "%sconvert ior to isload node [" POINTER_PRINTF_FORMAT "]\n", optDetailString(), node))
performTransformation(comp(), "%sconvert ior to sloadi node [" POINTER_PRINTF_FORMAT "]\n", optDetailString(), node))
{
TR::Node::recreate(node, TR::sloadi);
node->setSymbolReference(getSymRefTab()->findOrCreateUnsafeSymbolRef(TR::Int16));
Expand Down

0 comments on commit 30601f3

Please sign in to comment.