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 82d6ee0
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

1 comment on commit 82d6ee0

@NHDaly
Copy link
Member

@NHDaly NHDaly commented on 82d6ee0 May 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This backports JuliaLang#37893 to RAI build.

Please sign in to comment.