Skip to content

Commit

Permalink
Avoiding printing twice variable live range
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Bohe committed Oct 24, 2022
1 parent 7b79b0d commit 4e1cf47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/coreclr/jit/codegencommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2059,13 +2059,6 @@ void CodeGen::genEmitUnwindDebugGCandEH()

genSetScopeInfo();

#if defined(USING_VARIABLE_LIVE_RANGE) && defined(DEBUG)
if (compiler->verbose)
{
varLiveKeeper->dumpLvaVariableLiveRanges();
}
#endif // defined(USING_VARIABLE_LIVE_RANGE) && defined(DEBUG)

#ifdef LATE_DISASM
unsigned finalHotCodeSize;
unsigned finalColdCodeSize;
Expand Down
5 changes: 3 additions & 2 deletions src/coreclr/jit/ee_il_dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,9 @@ void Compiler::eeDispVar(ICorDebugInfo::NativeVarInfo* var)
{
name = "typeCtx";
}
printf("%3d(%10s) : From %08Xh to %08Xh, in ", var->varNumber,
(VarNameToStr(name) == nullptr) ? "UNKNOWN" : VarNameToStr(name), var->startOffset, var->endOffset);
gtDispLclVar(var->varNumber, false);
printf("(%10s) : From %08Xh to %08Xh, in ", (VarNameToStr(name) == nullptr) ? "UNKNOWN" : VarNameToStr(name),
var->startOffset, var->endOffset);

switch ((CodeGenInterface::siVarLocType)var->loc.vlType)
{
Expand Down

0 comments on commit 4e1cf47

Please sign in to comment.