Skip to content

Commit

Permalink
Use common proc instruction on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
fjeremic committed Jun 15, 2021
1 parent 54e8adb commit e054445
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions compiler/arm/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@ void OMR::ARM::CodeGenerator::beginInstructionSelection()
}

_returnTypeInfoInstruction = new (self()->trHeapMemory()) TR::ARMImmInstruction(cursor, TR::InstOpCode::dd, startNode, 0, self());
new (self()->trHeapMemory()) TR::ARMAdminInstruction(_returnTypeInfoInstruction, ARMOp_proc, startNode, NULL, self());
new (self()->trHeapMemory()) TR::ARMAdminInstruction(_returnTypeInfoInstruction, TR::InstOpCode::proc, startNode, NULL, self());

}
else
{
_returnTypeInfoInstruction = NULL;
new (self()->trHeapMemory()) TR::ARMAdminInstruction((TR::Instruction *)NULL, ARMOp_proc, startNode, NULL, self());
new (self()->trHeapMemory()) TR::ARMAdminInstruction((TR::Instruction *)NULL, TR::InstOpCode::proc, startNode, NULL, self());
}
}

Expand Down
4 changes: 0 additions & 4 deletions compiler/arm/codegen/OMRInstOpCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const OMR::ARM::InstOpCode::TR_OpCodeBinaryEntry OMR::ARM::InstOpCode::binaryEnc
0x06FF0070, // uxth
0x00000000, // ret
0x00000000, // wrtbar
0x00000000, // proc
0x0E070FBA, // dmb_v6
0xF57FF05F, // dmb
0xF57FF05E, // dmb_st
Expand Down Expand Up @@ -398,9 +397,6 @@ ARMOpProp_Arch4,
// wrtbar
0,

// proc
0,

// dmb_v6
0,

Expand Down
1 change: 0 additions & 1 deletion compiler/arm/codegen/OMRInstOpCode.enum
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
ARMOp_uxth, // Zero extend halfword
ARMOp_ret, // Return
ARMOp_wrtbar, // Write barrier directive
ARMOp_proc, // Entry to the method
ARMOp_dmb_v6, // Data memory barrier
ARMOp_dmb, // Data memory barrier on ARMv7A
ARMOp_dmb_st, // Data write memory barrier on ARMv7A
Expand Down
1 change: 0 additions & 1 deletion compiler/arm/codegen/OMRInstOpCode.enum.temp.defines
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
#define ARMOp_uxth OMR::InstOpCode::ARMOp_uxth
#define ARMOp_ret OMR::InstOpCode::ARMOp_ret
#define ARMOp_wrtbar OMR::InstOpCode::ARMOp_wrtbar
#define ARMOp_proc OMR::InstOpCode::ARMOp_proc
#define ARMOp_dmb_v6 OMR::InstOpCode::ARMOp_dmb_v6
#define ARMOp_dmb OMR::InstOpCode::ARMOp_dmb
#define ARMOp_dmb_st OMR::InstOpCode::ARMOp_dmb_st
Expand Down
2 changes: 1 addition & 1 deletion compiler/arm/codegen/OMRMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ TR::RealRegister *OMR::ARM::Machine::freeBestRegister(TR::Instruction *curre
while (numCandidates > 1 &&
cursor != NULL &&
cursor->getOpCodeValue() != TR::InstOpCode::label &&
cursor->getOpCodeValue() != ARMOp_proc)
cursor->getOpCodeValue() != TR::InstOpCode::proc)
{
for (int i = 0; i < numCandidates; i++)
{
Expand Down

0 comments on commit e054445

Please sign in to comment.