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 27, 2021
1 parent 99ca84e commit 61e5b45
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 @@ -708,6 +708,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 61e5b45

Please sign in to comment.