summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
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
commit2c356f3a7a3fcbdb36dcf3d09e56557f905353a2 (patch)
tree14dd2b50e9f014c5fb54ae6744aeb966b809ef32 /llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
parent67814261305cf58efd7df63bafcb6a65926ebd0c (diff)
downloadbcm5719-llvm-2c356f3a7a3fcbdb36dcf3d09e56557f905353a2.tar.gz
bcm5719-llvm-2c356f3a7a3fcbdb36dcf3d09e56557f905353a2.zip
[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). llvm-svn: 210263
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
index 4c9ce29c7e2..1fca067ad2e 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud