From 7239fcc41efd9c7192726c46a9405116f30e872d Mon Sep 17 00:00:00 2001 From: Shivam Mittal Date: Sun, 28 Jan 2018 21:01:11 +0530 Subject: [PATCH] Relocate createOrFindClonedNode, _uncommmonedNodes to OpenJ9 Signed-off-by: Shivam Mittal --- compiler/codegen/OMRCodeGenerator.cpp | 23 ----------------------- compiler/codegen/OMRCodeGenerator.hpp | 3 --- 2 files changed, 26 deletions(-) diff --git a/compiler/codegen/OMRCodeGenerator.cpp b/compiler/codegen/OMRCodeGenerator.cpp index 02f7c09bb8a..bea20b060b1 100644 --- a/compiler/codegen/OMRCodeGenerator.cpp +++ b/compiler/codegen/OMRCodeGenerator.cpp @@ -182,7 +182,6 @@ OMR::CodeGenerator::CodeGenerator() : _implicitExceptionPoint(0), _localsThatAreStored(NULL), _numLocalsWhenStoreAnalysisWasDone(-1), - _uncommmonedNodes(self()->comp()->trMemory(), stackAlloc), _ialoadUnneeded(self()->comp()->trMemory()), _symRefTab(self()->comp()->getSymRefTab()), _vmThreadRegister(NULL), @@ -1376,28 +1375,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 // The return tells how node1 and node2 is overlapped (TR_StorageOverlapKind) diff --git a/compiler/codegen/OMRCodeGenerator.hpp b/compiler/codegen/OMRCodeGenerator.hpp index 7e7504bb09d..721f8da09ca 100644 --- a/compiler/codegen/OMRCodeGenerator.hpp +++ b/compiler/codegen/OMRCodeGenerator.hpp @@ -269,7 +269,6 @@ class OMR_EXTENSIBLE CodeGenerator TR_BitVector *_localsThatAreStored; int32_t _numLocalsWhenStoreAnalysisWasDone; - TR_HashTabInt _uncommmonedNodes; // uncommoned nodes keyed by the original nodes List > _ialoadUnneeded; public: @@ -1337,8 +1336,6 @@ class OMR_EXTENSIBLE CodeGenerator // -------------------------------------------------------------------------- - TR::Node *createOrFindClonedNode(TR::Node *node, int32_t numChildren); - void zeroOutAutoOnEdge(TR::SymbolReference * liveAutoSym, TR::Block *block, TR::Block *succBlock, TR::list *newBlocks, TR_ScratchList *fsdStores); bool constantAddressesCanChangeSize(TR::Node *node);