@@ -2081,43 +2081,57 @@ void Compiler::compInitOptions(CORJIT_FLAGS* jitFlags)
2081
2081
{
2082
2082
LPCWSTR dumpIRFormat = nullptr ;
2083
2083
2084
- if (opts.eeFlags & CORJIT_FLG_PREJIT)
2085
- {
2086
- if (JitConfig.NgenDump ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2087
- verboseDump = true ;
2088
-
2089
- unsigned ngenHashDumpVal = (unsigned ) JitConfig.NgenHashDump ();
2090
- if ((ngenHashDumpVal != (DWORD)-1 ) && (ngenHashDumpVal == info.compMethodHash ()))
2091
- verboseDump = true ;
2092
-
2093
- if (JitConfig.NgenDumpIR ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2094
- dumpIR = true ;
2095
-
2096
- unsigned ngenHashDumpIRVal = (unsigned ) JitConfig.NgenHashDumpIR ();
2097
- if ((ngenHashDumpIRVal != (DWORD)-1 ) && (ngenHashDumpIRVal == info.compMethodHash ()))
2098
- dumpIR = true ;
2099
-
2100
- dumpIRFormat = JitConfig.NgenDumpIRFormat ();
2101
- dumpIRPhase = JitConfig.NgenDumpIRPhase ();
2102
- }
2103
- else
2084
+ // We should only enable 'verboseDump' when we are actually compiling a matching method
2085
+ // and not enable it when we are just considering inlining a matching method.
2086
+ //
2087
+ if (!compIsForInlining ())
2104
2088
{
2105
- if (JitConfig.JitDump ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2106
- verboseDump = true ;
2107
-
2108
- unsigned jitHashDumpVal = (unsigned ) JitConfig.JitHashDump ();
2109
- if ((jitHashDumpVal != (DWORD)-1 ) && (jitHashDumpVal == info.compMethodHash ()))
2110
- verboseDump = true ;
2111
-
2112
- if (JitConfig.JitDumpIR ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2113
- dumpIR = true ;
2114
-
2115
- unsigned jitHashDumpIRVal = (unsigned ) JitConfig.JitHashDumpIR ();
2116
- if ((jitHashDumpIRVal != (DWORD)-1 ) && (jitHashDumpIRVal == info.compMethodHash ()))
2117
- dumpIR = true ;
2118
-
2119
- dumpIRFormat = JitConfig.JitDumpIRFormat ();
2120
- dumpIRPhase = JitConfig.JitDumpIRPhase ();
2089
+ if (opts.eeFlags & CORJIT_FLG_PREJIT)
2090
+ {
2091
+ if (JitConfig.NgenDump ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2092
+ {
2093
+ verboseDump = true ;
2094
+ }
2095
+ unsigned ngenHashDumpVal = (unsigned ) JitConfig.NgenHashDump ();
2096
+ if ((ngenHashDumpVal != (DWORD)-1 ) && (ngenHashDumpVal == info.compMethodHash ()))
2097
+ {
2098
+ verboseDump = true ;
2099
+ }
2100
+ if (JitConfig.NgenDumpIR ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2101
+ {
2102
+ dumpIR = true ;
2103
+ }
2104
+ unsigned ngenHashDumpIRVal = (unsigned ) JitConfig.NgenHashDumpIR ();
2105
+ if ((ngenHashDumpIRVal != (DWORD)-1 ) && (ngenHashDumpIRVal == info.compMethodHash ()))
2106
+ {
2107
+ dumpIR = true ;
2108
+ }
2109
+ dumpIRFormat = JitConfig.NgenDumpIRFormat ();
2110
+ dumpIRPhase = JitConfig.NgenDumpIRPhase ();
2111
+ }
2112
+ else
2113
+ {
2114
+ if (JitConfig.JitDump ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2115
+ {
2116
+ verboseDump = true ;
2117
+ }
2118
+ unsigned jitHashDumpVal = (unsigned ) JitConfig.JitHashDump ();
2119
+ if ((jitHashDumpVal != (DWORD)-1 ) && (jitHashDumpVal == info.compMethodHash ()))
2120
+ {
2121
+ verboseDump = true ;
2122
+ }
2123
+ if (JitConfig.JitDumpIR ().contains (info.compMethodName , info.compClassName , &info.compMethodInfo ->args ))
2124
+ {
2125
+ dumpIR = true ;
2126
+ }
2127
+ unsigned jitHashDumpIRVal = (unsigned ) JitConfig.JitHashDumpIR ();
2128
+ if ((jitHashDumpIRVal != (DWORD)-1 ) && (jitHashDumpIRVal == info.compMethodHash ()))
2129
+ {
2130
+ dumpIR = true ;
2131
+ }
2132
+ dumpIRFormat = JitConfig.JitDumpIRFormat ();
2133
+ dumpIRPhase = JitConfig.JitDumpIRPhase ();
2134
+ }
2121
2135
}
2122
2136
2123
2137
if (dumpIRPhase == nullptr )
0 commit comments