Skip to content

Commit

Permalink
AArch64: Add debug print of register dependencies to branch instructions
Browse files Browse the repository at this point in the history
This commit changes the debug print function for `compare and branch` and
`test bit and branch` instructions to print out register dependencies.

Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
  • Loading branch information
Akira Saitoh committed Dec 31, 2020
1 parent 62dd1d4 commit f186f7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/aarch64/codegen/ARM64Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,8 @@ TR_Debug::print(TR::FILE *pOutFile, TR::ARM64CompareBranchInstruction *instr)
{
trfprintf(pOutFile, " (%s)", getName(snippet));
}
if (instr->getDependencyConditions())
print(pOutFile, instr->getDependencyConditions());
trfflush(_comp->getOutFile());
}

Expand All @@ -805,6 +807,8 @@ TR_Debug::print(TR::FILE *pOutFile, TR::ARM64TestBitBranchInstruction *instr)
{
trfprintf(pOutFile, " (%s)", getName(snippet));
}
if (instr->getDependencyConditions())
print(pOutFile, instr->getDependencyConditions());
trfflush(_comp->getOutFile());
}

Expand Down

0 comments on commit f186f7f

Please sign in to comment.