diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-05-18 18:17:22 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-05-18 18:17:22 +0000 |
commit | 15ffc0826782bb498f4ea2722aa15f28cffd04ec (patch) | |
tree | 6d800f918549c6a8539096af3b0f4f82e21362a0 /lib | |
parent | b17e76d34adbc4852dbfe0c49dd4533dc806769c (diff) | |
download | external_llvm-15ffc0826782bb498f4ea2722aa15f28cffd04ec.zip external_llvm-15ffc0826782bb498f4ea2722aa15f28cffd04ec.tar.gz external_llvm-15ffc0826782bb498f4ea2722aa15f28cffd04ec.tar.bz2 |
Don't call RegionInlinedFnEnd if our optimization level isn't -O0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index bbd8b5a..b8f22d6 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -3929,7 +3929,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { MachineFunction &MF = DAG.getMachineFunction(); DISubprogram Subprogram(cast<GlobalVariable>(REI.getContext())); - if (Subprogram.isNull() || Subprogram.describes(MF.getFunction())) { + if (OptLevel == CodeGenOpt::None || + Subprogram.isNull() || Subprogram.describes(MF.getFunction())) { unsigned LabelID = DW->RecordRegionEnd(cast<GlobalVariable>(REI.getContext())); DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(), |