Skip to content

Commit

Permalink
x86: Fix reg marked as live in vectorizedHashCode
Browse files Browse the repository at this point in the history
The result register from inline vectorizedHashCode
implementation is marked as live at the end of the method.
The call node->setRegister(result) should not happen twice.

Issue: eclipse-openj9#20824

Signed-off-by: Bradley Wood <[email protected]>
  • Loading branch information
BradleyWood committed Dec 16, 2024
1 parent f6e6334 commit b662e1a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion runtime/compiler/x/codegen/J9TreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9686,7 +9686,6 @@ J9::X86::TreeEvaluator::vectorizedHashCodeHelper(TR::Node *node, TR::DataType dt
cg->stopUsingRegister(index);
cg->stopUsingRegister(tmp);

node->setRegister(result);
cg->decReferenceCount(node->getChild(0));
cg->decReferenceCount(node->getChild(1));
cg->decReferenceCount(node->getChild(2));
Expand Down

0 comments on commit b662e1a

Please sign in to comment.