From: Ulrich Weigand Date: Thu, 5 Jun 2014 14:20:10 +0000 (+0000) Subject: [SystemZ] Do not install IfConverter pass at -O0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c356f3a7a3fcbdb36dcf3d09e56557f905353a2;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp index 4c9ce29..1fca067 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; }