From fed4e924fbd882232825fea5e993d9455996314e Mon Sep 17 00:00:00 2001 From: Carol Eidt Date: Thu, 19 Jul 2018 12:11:20 -0700 Subject: [PATCH] JitDump improvements - Reduce the size of "diffable" values (I've been encountering a number of diffs on x86; 2 bits seems to take care of it) - Dump a note when we start morphing args for a call. Commit migrated from https://github.com/dotnet/coreclr/commit/c9930680ea01fe86ce8815f51530b6a0ab810b5b --- src/coreclr/src/jit/emitxarch.cpp | 4 ++-- src/coreclr/src/jit/morph.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/jit/emitxarch.cpp b/src/coreclr/src/jit/emitxarch.cpp index 1211256b126..ba6635d9016 100644 --- a/src/coreclr/src/jit/emitxarch.cpp +++ b/src/coreclr/src/jit/emitxarch.cpp @@ -8304,8 +8304,8 @@ void emitter::emitDispIns( // Munge any pointers if we want diff-able disassembly if (emitComp->opts.disDiffable) { - ssize_t top12bits = (val >> 20); - if ((top12bits != 0) && (top12bits != -1)) + ssize_t top14bits = (val >> 18); + if ((top14bits != 0) && (top14bits != -1)) { val = 0xD1FFAB1E; } diff --git a/src/coreclr/src/jit/morph.cpp b/src/coreclr/src/jit/morph.cpp index 94b176eae3a..6f29f135445 100644 --- a/src/coreclr/src/jit/morph.cpp +++ b/src/coreclr/src/jit/morph.cpp @@ -2759,6 +2759,8 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call) bool callHasRetBuffArg = call->HasRetBufArg(); bool callIsVararg = call->IsVarargs(); + JITDUMP("%sMorphing args for %d.%s:\n", (reMorphing) ? "Re" : "", call->gtTreeID, GenTree::OpName(call->gtOper)); + #ifdef _TARGET_UNIX_ if (callIsVararg) { -- 2.34.1