mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
[SystemZ] Do not install IfConverter pass at -O0
When not optimizing, do not run the IfConverter pass, this makes debugging more difficult (and causes a testsuite failure in DebugInfo/unconditional-branch.ll). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2181b2319e
commit
e076b357aa
@ -65,7 +65,8 @@ bool SystemZPassConfig::addInstSelector() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool SystemZPassConfig::addPreSched2() {
|
bool SystemZPassConfig::addPreSched2() {
|
||||||
if (getSystemZTargetMachine().getSubtargetImpl()->hasLoadStoreOnCond())
|
if (getOptLevel() != CodeGenOpt::None &&
|
||||||
|
getSystemZTargetMachine().getSubtargetImpl()->hasLoadStoreOnCond())
|
||||||
addPass(&IfConverterID);
|
addPass(&IfConverterID);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user