summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-05-18 18:17:22 +0000
committerBill Wendling <isanbard@gmail.com>2009-05-18 18:17:22 +0000
commitaf7e400fdaf1bc8a62c2758571973331c10a5be7 (patch)
tree0a9f520b70094e60f605cf696a809cb5f069521c /llvm/lib/CodeGen
parentb17990999f413355376018445cbebd91a5c08152 (diff)
downloadbcm5719-llvm-af7e400fdaf1bc8a62c2758571973331c10a5be7.tar.gz
bcm5719-llvm-af7e400fdaf1bc8a62c2758571973331c10a5be7.zip
Don't call RegionInlinedFnEnd if our optimization level isn't -O0.
llvm-svn: 72024
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index bbd8b5aa360..b8f22d6bfa2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/llvm/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(),
OpenPOWER on IntegriCloud