Mercurial > hg > CbC > CbC_llvm
comparison llvm/lib/Passes/PassBuilder.cpp @ 168:980e56f2e095
...
author | anatofuz |
---|---|
date | Tue, 14 Apr 2020 15:43:20 +0900 |
parents | 3a3539a2fb79 |
children | f935e5e0dbe7 |
comparison
equal
deleted
inserted
replaced
167:e037d1dd7369 | 168:980e56f2e095 |
---|---|
635 MPM.addPass(PGOInstrumentationGen(IsCS)); | 635 MPM.addPass(PGOInstrumentationGen(IsCS)); |
636 | 636 |
637 FunctionPassManager FPM; | 637 FunctionPassManager FPM; |
638 FPM.addPass(createFunctionToLoopPassAdaptor( | 638 FPM.addPass(createFunctionToLoopPassAdaptor( |
639 LoopRotatePass(), EnableMSSALoopDependency, DebugLogging)); | 639 LoopRotatePass(), EnableMSSALoopDependency, DebugLogging)); |
640 #ifndef noCbC | |
641 FPM.addPass(TailCallElimPass()); | |
642 #endif | |
640 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); | 643 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); |
641 | 644 |
642 // Add the profile lowering pass. | 645 // Add the profile lowering pass. |
643 InstrProfOptions Options; | 646 InstrProfOptions Options; |
644 if (!ProfileFile.empty()) | 647 if (!ProfileFile.empty()) |