Skip to content

Commit

Permalink
add the LLVM inductive range check elimination pass (#42573)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Oct 14, 2021
1 parent 587ea02 commit 8c47de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,6 @@ void jl_dump_native_impl(void *native_code,
delete data;
}


void addTargetPasses(legacy::PassManagerBase *PM, TargetMachine *TM)
{
PM->add(new TargetLibraryInfoWrapperPass(Triple(TM->getTargetTriple())));
Expand Down Expand Up @@ -724,6 +723,7 @@ void addOptimizationPasses(legacy::PassManagerBase *PM, int opt_level,
PM->add(createLoopUnswitchPass());
PM->add(createLICMPass());
PM->add(createJuliaLICMPass());
PM->add(createInductiveRangeCheckEliminationPass());
// Subsequent passes not stripping metadata from terminator
PM->add(createInstSimplifyLegacyPass());
PM->add(createIndVarSimplifyPass());
Expand Down

0 comments on commit 8c47de5

Please sign in to comment.