[llvm] r268605 - ThinLTOCodeGenerator: remove useless temporary file that was emitted.
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Wed May 4 22:14:16 PDT 2016
Author: mehdi_amini
Date: Thu May 5 00:14:16 2016
New Revision: 268605
URL: http://llvm.org/viewvc/llvm-project?rev=268605&view=rev
Log:
ThinLTOCodeGenerator: remove useless temporary file that was emitted.
This was a remaining of a previous scheme where some IPOs were taking
place before we enter this code. This is not relevant anymore.
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp
Modified: llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp?rev=268605&r1=268604&r2=268605&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp (original)
+++ llvm/trunk/lib/LTO/ThinLTOCodeGenerator.cpp Thu May 5 00:14:16 2016
@@ -516,9 +516,6 @@ static std::unique_ptr<MemoryBuffer> Pro
ThinLTOCodeGenerator::CachingOptions CacheOptions, bool DisableCodeGen,
StringRef SaveTempsDir, unsigned count) {
- // Save temps: after IPO.
- saveTempBitcode(TheModule, SaveTempsDir, count, ".1.IPO.bc");
-
// Prepare for internalization by computing the set of symbols to preserve.
// We need to compute the list of symbols to preserve during internalization
// before doing any promotion because after renaming we won't (easily) match
@@ -538,25 +535,25 @@ static std::unique_ptr<MemoryBuffer> Pro
fixupODR(TheModule, ResolvedODR);
// Save temps: after promotion.
- saveTempBitcode(TheModule, SaveTempsDir, count, ".2.promoted.bc");
+ saveTempBitcode(TheModule, SaveTempsDir, count, ".1.promoted.bc");
}
// Internalization
doInternalizeModule(TheModule, TM, PreservedGV);
// Save internalized bitcode
- saveTempBitcode(TheModule, SaveTempsDir, count, ".3.internalized.bc");
+ saveTempBitcode(TheModule, SaveTempsDir, count, ".2.internalized.bc");
if (!SingleModule) {
crossImportIntoModule(TheModule, Index, ModuleMap, ImportList);
// Save temps: after cross-module import.
- saveTempBitcode(TheModule, SaveTempsDir, count, ".4.imported.bc");
+ saveTempBitcode(TheModule, SaveTempsDir, count, ".3.imported.bc");
}
optimizeModule(TheModule, TM);
- saveTempBitcode(TheModule, SaveTempsDir, count, ".5.opt.bc");
+ saveTempBitcode(TheModule, SaveTempsDir, count, ".4.opt.bc");
if (DisableCodeGen) {
// Configured to stop before CodeGen, serialize the bitcode and return.
More information about the llvm-commits
mailing list