Skip to content

Commit 39968e7

Browse files
authored
JIT: Enable strength reduction by default (#105131)
1 parent 37253e0 commit 39968e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/coreclr/jit/compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5065,7 +5065,7 @@ void Compiler::compCompile(void** methodCodePtr, uint32_t* methodCodeSize, JitFl
50655065
doAssertionProp = doValueNum && (JitConfig.JitDoAssertionProp() != 0);
50665066
doVNBasedIntrinExpansion = doValueNum;
50675067
doRangeAnalysis = doAssertionProp && (JitConfig.JitDoRangeAnalysis() != 0);
5068-
doOptimizeIVs = doValueNum && (JitConfig.JitDoOptimizeIVs() != 0);
5068+
doOptimizeIVs = doAssertionProp && (JitConfig.JitDoOptimizeIVs() != 0);
50695069
doVNBasedDeadStoreRemoval = doValueNum && (JitConfig.JitDoVNBasedDeadStoreRemoval() != 0);
50705070
#endif // defined(OPT_CONFIG)
50715071

src/coreclr/jit/jitconfigvalues.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ RELEASE_CONFIG_INTEGER(JitEnableCrossBlockLocalAssertionProp, W("JitEnableCrossB
773773
RELEASE_CONFIG_INTEGER(JitDoReversePostOrderLayout, W("JitDoReversePostOrderLayout"), 1);
774774

775775
// Enable strength reduction
776-
RELEASE_CONFIG_INTEGER(JitEnableStrengthReduction, W("JitEnableStrengthReduction"), 0)
776+
RELEASE_CONFIG_INTEGER(JitEnableStrengthReduction, W("JitEnableStrengthReduction"), 1)
777777

778778
// JitFunctionFile: Name of a file that contains a list of functions. If the currently compiled function is in the
779779
// file, certain other JIT config variables will be active. If the currently compiled function is not in the file,

0 commit comments

Comments
 (0)