File tree 1 file changed +6
-4
lines changed
src/mono/mono/mini/interp
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3841,6 +3841,10 @@ interp_optimize_code (TransformData *td)
3841
3841
if (mono_interp_opt & INTERP_OPT_BBLOCKS )
3842
3842
MONO_TIME_TRACK (mono_interp_stats .optimize_bblocks_time , interp_optimize_bblocks (td ));
3843
3843
3844
+ // Nothing to optimize if we don't have cprop enabled
3845
+ if (!(mono_interp_opt & INTERP_OPT_CPROP ))
3846
+ return ;
3847
+
3844
3848
if (!(mono_interp_opt & INTERP_OPT_SSA ))
3845
3849
td -> disable_ssa = TRUE;
3846
3850
@@ -3864,15 +3868,13 @@ interp_optimize_code (TransformData *td)
3864
3868
else
3865
3869
MONO_TIME_TRACK (mono_interp_stats .ssa_compute_time , interp_compute_ssa (td ));
3866
3870
3867
- if (mono_interp_opt & INTERP_OPT_CPROP )
3868
- MONO_TIME_TRACK (mono_interp_stats .cprop_time , interp_cprop (td ));
3871
+ MONO_TIME_TRACK (mono_interp_stats .cprop_time , interp_cprop (td ));
3869
3872
3870
3873
interp_var_deadce (td );
3871
3874
3872
3875
// We run this after var deadce to detect more single use vars. This pass will clear
3873
3876
// unnecessary instruction on the fly so deadce is no longer needed to run.
3874
- if ((mono_interp_opt & INTERP_OPT_SUPER_INSTRUCTIONS ) &&
3875
- (mono_interp_opt & INTERP_OPT_CPROP ))
3877
+ if (mono_interp_opt & INTERP_OPT_SUPER_INSTRUCTIONS )
3876
3878
MONO_TIME_TRACK (mono_interp_stats .super_instructions_time , interp_super_instructions (td ));
3877
3879
3878
3880
if (!td -> disable_ssa )
You can’t perform that action at this time.
0 commit comments