From 0d8ca304713bd4af49932be3be22d83f863293d2 Mon Sep 17 00:00:00 2001 From: "Bohao(Aaron) Wang" Date: Thu, 16 May 2019 15:50:23 -0400 Subject: [PATCH] remove the createOrClonedNode function in OMR TR::Node *createOrFindClonedNode function has only relevance to the OpenJ9 project. Therefore, remove it from OMR and relocate it to the J9::CodeGenerator instead. Signed-off-by: Bohao(Aaron) Wang --- compiler/codegen/OMRCodeGenerator.cpp | 21 --------------------- compiler/codegen/OMRCodeGenerator.hpp | 2 -- 2 files changed, 23 deletions(-) diff --git a/compiler/codegen/OMRCodeGenerator.cpp b/compiler/codegen/OMRCodeGenerator.cpp index 3b9928e1ed5..ece48384847 100644 --- a/compiler/codegen/OMRCodeGenerator.cpp +++ b/compiler/codegen/OMRCodeGenerator.cpp @@ -1293,27 +1293,6 @@ bool OMR::CodeGenerator::areAssignableGPRsScarce() return (self()->getMaximumNumbersOfAssignableGPRs() <= threshold); } -// J9 -// -TR::Node * -OMR::CodeGenerator::createOrFindClonedNode(TR::Node *node, int32_t numChildren) - { - TR_HashId index; - if (!_uncommmonedNodes.locate(node->getGlobalIndex(), index)) - { - // has not been uncommoned already, clone and store for later - TR::Node *clone = TR::Node::copy(node, numChildren); - _uncommmonedNodes.add(node->getGlobalIndex(), index, clone); - node = clone; - } - else - { - // found previously cloned node - node = (TR::Node *) _uncommmonedNodes.getData(index); - } - return node; - } - // returns true iff, based on opcodes and offsets if two store/load/address nodes are definitely disjoint (i.e. guaranteed not to overlap) // any combination of stores,loads and address nodes are allowed as node1 and node2 diff --git a/compiler/codegen/OMRCodeGenerator.hpp b/compiler/codegen/OMRCodeGenerator.hpp index 2b27555f6eb..c93f675c6fe 100644 --- a/compiler/codegen/OMRCodeGenerator.hpp +++ b/compiler/codegen/OMRCodeGenerator.hpp @@ -1391,8 +1391,6 @@ class OMR_EXTENSIBLE CodeGenerator // -------------------------------------------------------------------------- - TR::Node *createOrFindClonedNode(TR::Node *node, int32_t numChildren); - bool constantAddressesCanChangeSize(TR::Node *node); bool profiledPointersRequireRelocation(); bool needGuardSitesEvenWhenGuardRemoved();