mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add targets to skip running the GC passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a16422f11b
commit
ab37b2c4bb
@ -241,6 +241,11 @@ protected:
|
||||
return false;
|
||||
}
|
||||
|
||||
/// addGCPasses - Add late codegen passes that analyze code for garbage
|
||||
/// collection. This should return true if GC info should be printed after
|
||||
/// these passes.
|
||||
virtual bool addGCPasses();
|
||||
|
||||
/// Add standard basic block placement passes.
|
||||
virtual void addBlockPlacement();
|
||||
|
||||
|
@ -513,9 +513,10 @@ void TargetPassConfig::addMachinePasses() {
|
||||
}
|
||||
|
||||
// GC
|
||||
addPass(&GCMachineCodeAnalysisID);
|
||||
if (PrintGCInfo)
|
||||
addPass(createGCInfoPrinter(dbgs()));
|
||||
if (addGCPasses()) {
|
||||
if (PrintGCInfo)
|
||||
addPass(createGCInfoPrinter(dbgs()));
|
||||
}
|
||||
|
||||
// Basic block placement.
|
||||
if (getOptLevel() != CodeGenOpt::None)
|
||||
@ -732,6 +733,12 @@ void TargetPassConfig::addMachineLateOptimization() {
|
||||
printAndVerify("After copy propagation pass");
|
||||
}
|
||||
|
||||
/// Add standard GC passes.
|
||||
bool TargetPassConfig::addGCPasses() {
|
||||
addPass(&GCMachineCodeAnalysisID);
|
||||
return true;
|
||||
}
|
||||
|
||||
/// Add standard basic block placement passes.
|
||||
void TargetPassConfig::addBlockPlacement() {
|
||||
AnalysisID PassID = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user