if (verbose)
printf("\n*************** In optOptimizeValnumCSEs()\n");
- if (optConfigDisableCSE(false))
+ if (optConfigDisableCSE())
return; // Disabled by JitNoCSE
#endif
// If this method returns false then the CSE phase should be performed.
// If the method returns true then the CSE phase should be skipped.
//
-bool Compiler::optConfigDisableCSE(bool lexicalCSE)
+bool Compiler::optConfigDisableCSE()
{
- bool enabled = true;
-
-#if VALNUM_CSE_ENABLED
- if (lexicalCSE)
- return true; // lexical CSE phase is disabled
-#else
- if (!lexicalCSE)
- return true; // valnum CSE phase is disabled
-#endif
-
// Next check if COMPlus_JitNoCSE is set and applies to this method
//
unsigned jitNoCSE = JitConfig.JitNoCSE();
unsigned bitsOne = (jitNoCSE >> 0) & 0xFFF;
if ((( methodCountMask & bitsOne) == bitsOne) &&
- ((~methodCountMask & bitsZero) == bitsZero) )
+ ((~methodCountMask & bitsZero) == bitsZero))
{
- if (verbose)
+ if (verbose)
+ {
printf(" Disabled by JitNoCSE methodCountMask\n");
+ }
+
return true; // The CSE phase for this method is disabled
}
}
else if (jitNoCSE <= (methodCount+1))
{
- if (verbose)
+ if (verbose)
+ {
printf(" Disabled by JitNoCSE > methodCount\n");
+ }
+
return true; // The CSE phase for this method is disabled
}
}
+
return false;
}
/*****************************************************************************/
-#define VALNUM_CSE_ENABLED 1
-
-/*****************************************************************************/
-
#if defined(_TARGET_X86_)
#define CPU_LOAD_STORE_ARCH 0
#else // LEGACY_BACKEND
#define FEATURE_STACK_FP_X87 1 // Use flat register file model
#endif // LEGACY_BACKEND
- #define FEATURE_X87_DOUBLES (1-VALNUM_CSE_ENABLED) // FP tree temps always use x87 doubles (when 1) or can be double or float (when 0)
+ #define FEATURE_X87_DOUBLES 0 // FP tree temps always use x87 doubles (when 1) or can be double or float (when 0).
#define ETW_EBP_FRAMED 1 // if 1 we cannot use EBP as a scratch register and must create EBP based frames for most methods
#define CSE_CONSTS 1 // Enable if we want to CSE constants