Skip to content

Commit

Permalink
RAI: Change optimization aggressiveness for -O1 from None to Less
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany committed Apr 29, 2024
1 parent bcd9f13 commit f26a737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ CodeGenOpt::Level CodeGenOptLevelFor(int optlevel)
#ifdef DISABLE_OPT
return CodeGenOpt::None;
#else
return optlevel < 2 ? CodeGenOpt::None :
return optlevel == 0 ? CodeGenOpt::None :
optlevel == 1 ? CodeGenOpt::Less :
optlevel == 2 ? CodeGenOpt::Default :
CodeGenOpt::Aggressive;
#endif
Expand Down

0 comments on commit f26a737

Please sign in to comment.