From 15ffc0826782bb498f4ea2722aa15f28cffd04ec Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 18 May 2009 18:17:22 +0000 Subject: 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 --- lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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(REI.getContext())); - if (Subprogram.isNull() || Subprogram.describes(MF.getFunction())) { + if (OptLevel == CodeGenOpt::None || + Subprogram.isNull() || Subprogram.describes(MF.getFunction())) { unsigned LabelID = DW->RecordRegionEnd(cast(REI.getContext())); DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(), -- cgit v1.1