Skip to content

Commit

Permalink
Relocate createOrFindClonedNode, _uncommmonedNodes to OpenJ9
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Mittal <[email protected]>
  • Loading branch information
shivammittal99 committed Jun 28, 2018
1 parent ebefb67 commit 7239fcc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
23 changes: 0 additions & 23 deletions compiler/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions compiler/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TR_Pair<TR::Node, int32_t> > _ialoadUnneeded;

public:
Expand Down Expand Up @@ -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<TR::Block*> *newBlocks, TR_ScratchList<TR::Node> *fsdStores);

bool constantAddressesCanChangeSize(TR::Node *node);
Expand Down

0 comments on commit 7239fcc

Please sign in to comment.