diff options
| -rw-r--r-- | llvm/tools/gccld/gccld.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp index 283118d2940..5b56bd830d3 100644 --- a/llvm/tools/gccld/gccld.cpp +++ b/llvm/tools/gccld/gccld.cpp @@ -405,6 +405,10 @@ int main(int argc, char **argv) { // Passes.add(createInstructionCombiningPass()); + // Delete basic blocks, which optimization passes may have killed... + // + Passes.add(createCFGSimplificationPass()); + // Now that we have optimized the program, discard unreachable functions... // Passes.add(createGlobalDCEPass()); |

