[llvm] r210263 - [SystemZ] Do not install IfConverter pass at -O0
Ulrich Weigand
ulrich.weigand at de.ibm.com
Thu Jun 5 07:20:11 PDT 2014
Author: uweigand
Date: Thu Jun 5 09:20:10 2014
New Revision: 210263
URL: http://llvm.org/viewvc/llvm-project?rev=210263&view=rev
Log:
[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).
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp
Modified: llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp?rev=210263&r1=210262&r2=210263&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp Thu Jun 5 09:20:10 2014
@@ -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;
}
More information about the llvm-commits
mailing list