diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-07 20:28:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-07 20:28:37 +0000 |
commit | d0a6a8ca31e507ab3852f156867c439a4cd015f0 (patch) | |
tree | 6410a72cf2f5a8233e7835f2d0a63d6b4ba0361e /tools/bugpoint | |
parent | b9539745c54de13452e5ae7d0a13cb20dd763c10 (diff) | |
download | external_llvm-d0a6a8ca31e507ab3852f156867c439a4cd015f0.zip external_llvm-d0a6a8ca31e507ab3852f156867c439a4cd015f0.tar.gz external_llvm-d0a6a8ca31e507ab3852f156867c439a4cd015f0.tar.bz2 |
Run dead type elimination after dead argument elimination.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 82f7874..c5aa6b4 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -116,13 +116,14 @@ Module *BugDriver::performFinalCleanups(Module *M, bool MayModifySemantics) { std::vector<const PassInfo*> CleanupPasses; CleanupPasses.push_back(getPI(createGlobalDCEPass())); - CleanupPasses.push_back(getPI(createDeadTypeEliminationPass())); if (MayModifySemantics) CleanupPasses.push_back(getPI(createDeadArgHackingPass())); else CleanupPasses.push_back(getPI(createDeadArgEliminationPass())); + CleanupPasses.push_back(getPI(createDeadTypeEliminationPass())); + Module *New = runPassesOn(M, CleanupPasses); if (New == 0) { errs() << "Final cleanups failed. Sorry. :( Please report a bug!\n"; |