Skip to content

Commit

Permalink
AArch64: Enable using VirtualGuardNOP as branch to OOL section.
Browse files Browse the repository at this point in the history
Handle VirtualGuardNOP as a branch instruction to OOL section.

Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
  • Loading branch information
Akira Saitoh committed Apr 7, 2021
1 parent 8f83faf commit f0ca449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/aarch64/codegen/ARM64Instruction.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2020 IBM Corp. and others
* Copyright (c) 2018, 2021 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 @@ -30,7 +30,7 @@ void TR::ARM64LabelInstruction::assignRegistersForOutOfLineCodeSection(TR_Regist
TR::Compilation *comp = cg()->comp();

bool isLabel = getOpCodeValue() == TR::InstOpCode::label;
bool isBranch = (getOpCodeValue() == TR::InstOpCode::b) || (getKind() == IsConditionalBranch) || (getKind() == IsCompareBranch) || (getKind() == IsTestBitBranch);
bool isBranch = (getOpCodeValue() == TR::InstOpCode::b) || (getKind() == IsConditionalBranch) || (getKind() == IsCompareBranch) || (getKind() == IsTestBitBranch) || (getKind() == IsVirtualGuardNOP);

cg()->freeUnlatchedRegisters();
// this is the return label from OOL
Expand Down

0 comments on commit f0ca449

Please sign in to comment.