Deleted Added
full compact
opt.cpp (223013) opt.cpp (226584)
1//===- opt.cpp - The LLVM Modular Optimizer -------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 21 unchanged lines hidden (view full) ---

30#include "llvm/ADT/Triple.h"
31#include "llvm/Support/PassNameParser.h"
32#include "llvm/Support/Signals.h"
33#include "llvm/Support/Debug.h"
34#include "llvm/Support/IRReader.h"
35#include "llvm/Support/ManagedStatic.h"
36#include "llvm/Support/PluginLoader.h"
37#include "llvm/Support/PrettyStackTrace.h"
1//===- opt.cpp - The LLVM Modular Optimizer -------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 21 unchanged lines hidden (view full) ---

30#include "llvm/ADT/Triple.h"
31#include "llvm/Support/PassNameParser.h"
32#include "llvm/Support/Signals.h"
33#include "llvm/Support/Debug.h"
34#include "llvm/Support/IRReader.h"
35#include "llvm/Support/ManagedStatic.h"
36#include "llvm/Support/PluginLoader.h"
37#include "llvm/Support/PrettyStackTrace.h"
38#include "llvm/Support/PassManagerBuilder.h"
39#include "llvm/Support/SystemUtils.h"
40#include "llvm/Support/ToolOutputFile.h"
41#include "llvm/LinkAllPasses.h"
42#include "llvm/LinkAllVMCore.h"
38#include "llvm/Support/SystemUtils.h"
39#include "llvm/Support/ToolOutputFile.h"
40#include "llvm/LinkAllPasses.h"
41#include "llvm/LinkAllVMCore.h"
42#include "llvm/Transforms/IPO/PassManagerBuilder.h"
43#include <memory>
44#include <algorithm>
45using namespace llvm;
46
47// The OptimizationList is automatically populated with registered Passes by the
48// PassNameParser.
49//
50static cl::list<const PassInfo*, bool, PassNameParser>

--- 375 unchanged lines hidden (view full) ---

426
427 Builder.populateFunctionPassManager(FPM);
428 Builder.populateModulePassManager(MPM);
429}
430
431static void AddStandardCompilePasses(PassManagerBase &PM) {
432 PM.add(createVerifierPass()); // Verify that input is correct
433
43#include <memory>
44#include <algorithm>
45using namespace llvm;
46
47// The OptimizationList is automatically populated with registered Passes by the
48// PassNameParser.
49//
50static cl::list<const PassInfo*, bool, PassNameParser>

--- 375 unchanged lines hidden (view full) ---

426
427 Builder.populateFunctionPassManager(FPM);
428 Builder.populateModulePassManager(MPM);
429}
430
431static void AddStandardCompilePasses(PassManagerBase &PM) {
432 PM.add(createVerifierPass()); // Verify that input is correct
433
434 addPass(PM, createLowerSetJmpPass()); // Lower llvm.setjmp/.longjmp
435
436 // If the -strip-debug command line option was specified, do it.
437 if (StripDebug)
438 addPass(PM, createStripSymbolsPass(true));
439
440 if (DisableOptimizations) return;
441
442 // -std-compile-opts adds the same module passes as -O3.
443 PassManagerBuilder Builder;

--- 272 unchanged lines hidden ---
434 // If the -strip-debug command line option was specified, do it.
435 if (StripDebug)
436 addPass(PM, createStripSymbolsPass(true));
437
438 if (DisableOptimizations) return;
439
440 // -std-compile-opts adds the same module passes as -O3.
441 PassManagerBuilder Builder;

--- 272 unchanged lines hidden ---