Skip to content

Commit

Permalink
Moved _ialoadUnneeded field to Z CodeGenerator
Browse files Browse the repository at this point in the history
Moved all instances of the _ialoadUnneeded attribute to the Z subfolder:
 - Moved "List<TR_Pair<TR::Node, int32_t> > _ialoadUnneeded;" from
   compiler/codegen/OMRCodeGenerator.hpp to z/codegen/OMRCodeGenerator.hpp

 - Moved '_ialoadUnneeded(comp->trMemory()),'from
  compiler/codegen/OMRCodegenerator.cpp to z/codegen/OMRCodeGenerator.cpp

 - Updated commit message to follow guidelines
  • Loading branch information
rlkenny98 committed May 12, 2021
1 parent cd2fd54 commit 6434715
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion compiler/codegen/OMRCodeGenerator.cpp
Expand Up @@ -168,7 +168,6 @@ OMR::CodeGenerator::CodeGenerator(TR::Compilation *comp) :
_implicitExceptionPoint(0),
_localsThatAreStored(NULL),
_numLocalsWhenStoreAnalysisWasDone(-1),
_ialoadUnneeded(comp->trMemory()),
_symRefTab(comp->getSymRefTab()),
_vmThreadRegister(NULL),
_stackAtlas(NULL),
Expand Down
1 change: 0 additions & 1 deletion compiler/codegen/OMRCodeGenerator.hpp
Expand Up @@ -268,7 +268,6 @@ class OMR_EXTENSIBLE CodeGenerator

TR_BitVector *_localsThatAreStored;
int32_t _numLocalsWhenStoreAnalysisWasDone;
List<TR_Pair<TR::Node, int32_t> > _ialoadUnneeded;

/**
* @brief Constructor
Expand Down
3 changes: 2 additions & 1 deletion compiler/z/codegen/OMRCodeGenerator.cpp
Expand Up @@ -409,7 +409,8 @@ OMR::Z::CodeGenerator::CodeGenerator(TR::Compilation *comp)
_ccInstruction(NULL),
_previouslyAssignedTo(comp->allocator("LocalRA")),
_methodBegin(NULL),
_methodEnd(NULL)
_methodEnd(NULL),
_ialoadUnneeded(comp->trMemory())
{
}

Expand Down
3 changes: 3 additions & 0 deletions compiler/z/codegen/OMRCodeGenerator.hpp
Expand Up @@ -256,6 +256,7 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGenerator

protected:


CodeGenerator(TR::Compilation *comp);

public:
Expand Down Expand Up @@ -782,6 +783,8 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGenerator
TR::list<TR::S390WritableDataSnippet*> _writableList;
TR::list<TR_S390OutOfLineCodeSection*> _outOfLineCodeSectionList;

List<TR_Pair<TR::Node, int32_t> > _ialoadUnneeded;

CS2::HashTable<TR::Register *, TR::RealRegister::RegNum, TR::Allocator> _previouslyAssignedTo;

TR_ConstantSnippetHash _constantHash;
Expand Down

0 comments on commit 6434715

Please sign in to comment.