diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-25 00:52:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-25 00:52:30 +0000 |
commit | b0143880f4705a34856975ea7a73ba032cb38e5e (patch) | |
tree | 8f31311be3edb8fefbcd863c9ff72bca3ee120c9 /llvm/tools/bugpoint/ExtractFunction.cpp | |
parent | 0cd5d533d0598b16b30e26b1fae5169ecce71792 (diff) | |
download | bcm5719-llvm-b0143880f4705a34856975ea7a73ba032cb38e5e.tar.gz bcm5719-llvm-b0143880f4705a34856975ea7a73ba032cb38e5e.zip |
When cleaning up the final bytecode file, make sure to run DTE as well
llvm-svn: 5917
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index 2148e405f53..5451888c4f3 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -64,11 +64,12 @@ Module *BugDriver::deleteInstructionFromProgram(Instruction *I, /// before handing it to the user... /// Module *BugDriver::performFinalCleanups() const { + Module *M = CloneModule(Program); PassManager CleanupPasses; CleanupPasses.add(createFunctionResolvingPass()); CleanupPasses.add(createGlobalDCEPass()); + CleanupPasses.add(createDeadTypeEliminationPass()); CleanupPasses.add(createVerifierPass()); - Module *M = CloneModule(Program); CleanupPasses.run(*M); return M; } |