Skip to content

Commit

Permalink
Merge pull request #4805 from aviansie-ben/power-remove-depend
Browse files Browse the repository at this point in the history
Remove the unused depend Power pseudoinstruction
  • Loading branch information
0xdaryl authored Feb 5, 2020
2 parents 46e59c6 + 53bc0e1 commit 419f1da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
3 changes: 1 addition & 2 deletions compiler/p/codegen/OMRInstOpCode.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -179,7 +179,6 @@ class InstOpCode: public OMR::InstOpCode

bool isAdmin() {return _mnemonic==ret ||
_mnemonic==fence ||
_mnemonic==depend ||
_mnemonic==proc ||
_mnemonic==assocreg ||
_mnemonic==dd;}
Expand Down
1 change: 0 additions & 1 deletion compiler/p/codegen/OMRInstOpCodeEnum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@
dd, // define word
assocreg, // Associate real registers with Virtual registers.
vgdnop, // Virtual Guard NOP instruction
depend, // Instruction to hang dependency on
probenop, // Probe NOP (for RI)
iflong, // compare and branch long
setblong, // compare long and set boolean
Expand Down
10 changes: 0 additions & 10 deletions compiler/p/codegen/OMRInstOpCodeProperties.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5876,16 +5876,6 @@
/* .properties = */ PPCOpProp_None,
},

{
/* .mnemonic = */ OMR::InstOpCode::depend,
/* .name = */ "depend",
/* .description = "Instruction to hang dependency on", */
/* .opcode = */ 0x00000000,
/* .format = */ UNKNOWN_FORMAT,
/* .minimumALS = */ TR_Processor::TR_DefaultPPCProcessor,
/* .properties = */ PPCOpProp_None,
},

{
/* .mnemonic = */ OMR::InstOpCode::probenop,
/* .name = */ "nop",
Expand Down
6 changes: 3 additions & 3 deletions compiler/p/codegen/PPCBinaryEncoding.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
* Copyright (c) 2000, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -61,7 +61,7 @@ OMR::Power::Instruction::generateBinaryEncoding()
{
uint8_t *instructionStart = self()->cg()->getBinaryBufferCursor();
uint8_t *cursor = instructionStart;
if (self()->getOpCodeValue() == TR::InstOpCode::depend || self()->getOpCodeValue() == TR::InstOpCode::assocreg)
if (self()->getOpCodeValue() == TR::InstOpCode::assocreg)
{
}
else
Expand All @@ -84,7 +84,7 @@ OMR::Power::Instruction::generateBinaryEncoding()
int32_t
OMR::Power::Instruction::estimateBinaryLength(int32_t currentEstimate)
{
if (self()->getOpCodeValue() == TR::InstOpCode::depend || self()->getOpCodeValue() == TR::InstOpCode::assocreg)
if (self()->getOpCodeValue() == TR::InstOpCode::assocreg)
{
self()->setEstimatedBinaryLength(0);
return currentEstimate;
Expand Down

0 comments on commit 419f1da

Please sign in to comment.