diff options
-rw-r--r-- | tools/llvm-ld/Optimize.cpp | 2 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp index 49b8f42..308fd54 100644 --- a/tools/llvm-ld/Optimize.cpp +++ b/tools/llvm-ld/Optimize.cpp @@ -168,7 +168,7 @@ void Optimize(Module* M) { addPass(Passes, createLICMPass()); // Hoist loop invariants addPass(Passes, createLoadValueNumberingPass()); // GVN for load instrs addPass(Passes, createGCSEPass()); // Remove common subexprs - addPass(Passes, createDeadStoreEliminationPass()); // Nuke dead stores + addPass(Passes, createFastDeadStoreEliminationPass()); // Nuke dead stores // Cleanup and simplify the code after the scalar optimizations. addPass(Passes, createInstructionCombiningPass()); diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index fc71074..24f6b79 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -291,7 +291,7 @@ void AddStandardCompilePasses(PassManager &PM) { addPass(PM, createInstructionCombiningPass()); addPass(PM, createCondPropagationPass()); // Propagate conditionals - addPass(PM, createDeadStoreEliminationPass()); // Delete dead stores + addPass(PM, createFastDeadStoreEliminationPass()); // Delete dead stores addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE' addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs addPass(PM, createSimplifyLibCallsPass()); // Library Call Optimizations |