forked from OSchip/llvm-project
run a late dce pass to clean up extra cruft.
llvm-svn: 35684
This commit is contained in:
parent
506d8db8a4
commit
c7de6e0a75
|
@ -201,6 +201,7 @@ void Optimize(Module* M) {
|
||||||
if (!DisableOptimizations) {
|
if (!DisableOptimizations) {
|
||||||
addPass(Passes, createInstructionCombiningPass());
|
addPass(Passes, createInstructionCombiningPass());
|
||||||
addPass(Passes, createCFGSimplificationPass());
|
addPass(Passes, createCFGSimplificationPass());
|
||||||
|
addPass(Passes, createDeadCodeEliminationPass());
|
||||||
addPass(Passes, createGlobalDCEPass());
|
addPass(Passes, createGlobalDCEPass());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue