Skip to content

Commit

Permalink
[LLVM] add correlated value propagation after jump threading
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed May 20, 2021
1 parent 72fc1e1 commit 7df16be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ void addOptimizationPasses(legacy::PassManagerBase *PM, int opt_level,
PM->add(createSROAPass());
PM->add(createInstSimplifyLegacyPass());
PM->add(createJumpThreadingPass());
PM->add(createCorrelatedValuePropagationPass());

PM->add(createReassociatePass());

Expand Down Expand Up @@ -743,6 +744,7 @@ void addOptimizationPasses(legacy::PassManagerBase *PM, int opt_level,
// loops over Union-typed arrays to vectorize.
PM->add(createInstructionCombiningPass());
PM->add(createJumpThreadingPass());
PM->add(createCorrelatedValuePropagationPass());
PM->add(createDeadStoreEliminationPass());

// More dead allocation (store) deletion before loop optimization
Expand Down

0 comments on commit 7df16be

Please sign in to comment.