summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2014-06-05 14:20:10 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2014-06-05 14:20:10 +0000
commite076b357aaf50b235502432eaa5df4ec86f0fd65 (patch)
tree014a0834b11bbe40e25baac1b87781d773d4814f /lib
parent2181b2319ea85629f6da3d7c0b4647dfa855fde6 (diff)
downloadllvm-e076b357aaf50b235502432eaa5df4ec86f0fd65.tar.gz
llvm-e076b357aaf50b235502432eaa5df4ec86f0fd65.tar.bz2
llvm-e076b357aaf50b235502432eaa5df4ec86f0fd65.tar.xz
[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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SystemZ/SystemZTargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZTargetMachine.cpp b/lib/Target/SystemZ/SystemZTargetMachine.cpp
index 4c9ce29c7e..1fca067ad2 100644
--- a/lib/Target/SystemZ/SystemZTargetMachine.cpp
+++ b/lib/Target/SystemZ/SystemZTargetMachine.cpp
@@ -65,7 +65,8 @@ bool SystemZPassConfig::addInstSelector() {
}
bool SystemZPassConfig::addPreSched2() {
- if (getSystemZTargetMachine().getSubtargetImpl()->hasLoadStoreOnCond())
+ if (getOptLevel() != CodeGenOpt::None &&
+ getSystemZTargetMachine().getSubtargetImpl()->hasLoadStoreOnCond())
addPass(&IfConverterID);
return true;
}