Run dead arg elimination, and tell it that it's ok to hack up non-internal functions
authorChris Lattner <sabre@nondot.org>
Wed, 25 Jun 2003 04:13:36 +0000 (04:13 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Jun 2003 04:13:36 +0000 (04:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6896 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ExtractFunction.cpp

index 725ba599bd9b36a789159e6e381257e48076229e..1aefcefad4bc253cefca274ce83470f85b3da059 100644 (file)
@@ -97,6 +97,7 @@ Module *BugDriver::performFinalCleanups() const {
   CleanupPasses.add(createFunctionResolvingPass());
   CleanupPasses.add(createGlobalDCEPass());
   CleanupPasses.add(createDeadTypeEliminationPass());
+  CleanupPasses.add(createDeadArgEliminationPass(true));
   CleanupPasses.add(createVerifierPass());
   CleanupPasses.run(*M);
   return M;