Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

[DO NOT MERGE] Simplify CFG between IndVarSimplify and LoopIdiomRecognize #100

Open
wants to merge 1 commit into
base: rust-llvm-release-4-0-1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/Transforms/IPO/PassManagerBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ void PassManagerBuilder::addFunctionSimplificationPasses(
MPM.add(createCFGSimplificationPass());
addInstructionCombiningPass(MPM);
MPM.add(createIndVarSimplifyPass()); // Canonicalize indvars
MPM.add(createCFGSimplificationPass()); // Clean up after IndVarSimplify.
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
MPM.add(createLoopDeletionPass()); // Delete dead loops
if (EnableLoopInterchange) {
Expand Down