mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[PowerPC] Enable machine verification for 3 passes
Summary: For PowerPC, there are 3 passes has disabled the machine verification. ``` PPCTargetMachine.cpp: addPass(&LiveVariablesID, false); PPCTargetMachine.cpp: addPass(createPPCEarlyReturnPass(), false); PPCTargetMachine.cpp: addPass(createPPCBranchSelectionPass(), false); ``` This patch is to enable machine verification for above three passes. Reviewed By: steven.zhang Differential Revision: https://reviews.llvm.org/D79840
This commit is contained in:
parent
284aaf11ee
commit
7355c9d744
@ -504,7 +504,7 @@ void PPCPassConfig::addPreRegAlloc() {
|
||||
// PPCTLSDynamicCallPass uses LiveIntervals which previously dependent on
|
||||
// LiveVariables. This (unnecessary) dependency has been removed now,
|
||||
// however a stage-2 clang build fails without LiveVariables computed here.
|
||||
addPass(&LiveVariablesID, false);
|
||||
addPass(&LiveVariablesID);
|
||||
addPass(createPPCTLSDynamicCallPass());
|
||||
}
|
||||
if (EnableExtraTOCRegDeps)
|
||||
@ -531,9 +531,9 @@ void PPCPassConfig::addPreEmitPass() {
|
||||
addPass(createPPCExpandISELPass());
|
||||
|
||||
if (getOptLevel() != CodeGenOpt::None)
|
||||
addPass(createPPCEarlyReturnPass(), false);
|
||||
addPass(createPPCEarlyReturnPass());
|
||||
// Must run branch selection immediately preceding the asm printer.
|
||||
addPass(createPPCBranchSelectionPass(), false);
|
||||
addPass(createPPCBranchSelectionPass());
|
||||
}
|
||||
|
||||
TargetTransformInfo
|
||||
|
Loading…
Reference in New Issue
Block a user