JitDump improvements
authorCarol Eidt <carol.eidt@microsoft.com>
Thu, 19 Jul 2018 19:11:20 +0000 (12:11 -0700)
committerCarol Eidt <carol.eidt@microsoft.com>
Thu, 19 Jul 2018 19:11:20 +0000 (12:11 -0700)
- 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
src/coreclr/src/jit/morph.cpp

index 1211256..ba6635d 100644 (file)
@@ -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;
                     }
index 94b176e..6f29f13 100644 (file)
@@ -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)
     {