remove the temporary -disable-dse option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18451
91177308-0d34-0410-b5e6-
96231b3b80d8
cl::desc("Do not run any optimization passes"));
cl::opt<bool>
cl::desc("Do not run any optimization passes"));
cl::opt<bool>
- DisableDSE("disable-dse", cl::desc("Do not run dead store elimination"));
+ StripDebug("strip-debug",
+ cl::desc("Strip debugger symbol info from translation unit"));
+
cl::opt<bool>
NoCompress("disable-compression", cl::init(false),
cl::desc("Don't ompress the generated bytecode"));
cl::opt<bool>
NoCompress("disable-compression", cl::init(false),
cl::desc("Don't ompress the generated bytecode"));
void AddConfiguredTransformationPasses(PassManager &PM) {
PM.add(createVerifierPass()); // Verify that input is correct
void AddConfiguredTransformationPasses(PassManager &PM) {
PM.add(createVerifierPass()); // Verify that input is correct
addPass(PM, createLowerSetJmpPass()); // Lower llvm.setjmp/.longjmp
addPass(PM, createFunctionResolvingPass()); // Resolve (...) functions
addPass(PM, createLowerSetJmpPass()); // Lower llvm.setjmp/.longjmp
addPass(PM, createFunctionResolvingPass()); // Resolve (...) functions
+ // If the -strip-debug command line option was specified, do it.
+ if (StripDebug)
+ addPass(PM, createStripSymbolsPass(true));
+
if (DisableOptimizations) return;
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
if (DisableOptimizations) return;
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
// Run instcombine after redundancy elimination to exploit opportunities
// opened up by them.
addPass(PM, createInstructionCombiningPass());
// Run instcombine after redundancy elimination to exploit opportunities
// opened up by them.
addPass(PM, createInstructionCombiningPass());
- if (!DisableDSE)
- addPass(PM, createDeadStoreEliminationPass()); // Delete dead stores
+ addPass(PM, createDeadStoreEliminationPass()); // Delete dead stores
addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types