Skip to content

Commit

Permalink
Add an extra IRCE pass to get rid of more missed bounds checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Prem Chintalapudi committed Oct 19, 2021
1 parent ca18098 commit ae25afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ void addOptimizationPasses(legacy::PassManagerBase *PM, int opt_level,
PM->add(createLoopUnswitchPass());
PM->add(createLICMPass());
PM->add(createJuliaLICMPass());
PM->add(createInductiveRangeCheckEliminationPass()); // Must come before indvars
// Subsequent passes not stripping metadata from terminator
PM->add(createInstSimplifyLegacyPass());
PM->add(createIndVarSimplifyPass());
Expand Down

0 comments on commit ae25afa

Please sign in to comment.