Skip to content

Commit

Permalink
Merge pull request #3998 from nidhi1605/removeFlattenRegisterPairs
Browse files Browse the repository at this point in the history
Remove FlattenRegisterPairs
  • Loading branch information
0xdaryl authored Jun 18, 2019
2 parents a48adc6 + 5be0a71 commit 2394432
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
22 changes: 0 additions & 22 deletions compiler/codegen/OMRRegisterPair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,3 @@ OMR::RegisterPair::getRegisterPair()
return REGPAIR_THIS;
}

int32_t
OMR::RegisterPair::FlattenRegisterPairs(TR_Queue<TR::Register> * Pairs)
{
//Empty Queue
while(Pairs->dequeue());

int32_t regCount = 0;
TR::Register * firstPair = REGPAIR_THIS;
Pairs->enqueue(firstPair);
regCount++;

while(Pairs->peek()->getRegisterPair() != NULL){
TR::Register * pair = Pairs->dequeue();
regCount--;
Pairs->enqueue(pair->getHighOrder());
regCount++;
Pairs->enqueue(pair->getLowOrder());
regCount++;
}

return regCount;
}
1 change: 0 additions & 1 deletion compiler/codegen/OMRRegisterPair.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class OMR_EXTENSIBLE RegisterPair : public TR::Register

virtual TR::Register *getRegister();
virtual TR::RegisterPair *getRegisterPair();
virtual int32_t FlattenRegisterPairs(TR_Queue<TR::Register> * Pairs);


private:
Expand Down
1 change: 0 additions & 1 deletion compiler/z/codegen/OMRRegister.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ class OMR_EXTENSIBLE Register: public OMR::Register
* Methods specialized in derived classes
*/

virtual int32_t FlattenRegisterPairs(TR_Queue<TR::Register> * Pairs) {return 0;}
virtual bool usesRegister(TR::Register* reg); //ppc may duplicate this
virtual bool usesAnyRegister(TR::Register* reg);

Expand Down

0 comments on commit 2394432

Please sign in to comment.