[llvm-commits] [llvm] r72024 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Bill Wendling
isanbard at gmail.com
Mon May 18 11:17:23 PDT 2009
Author: void
Date: Mon May 18 13:17:22 2009
New Revision: 72024
URL: http://llvm.org/viewvc/llvm-project?rev=72024&view=rev
Log:
Don't call RegionInlinedFnEnd if our optimization level isn't -O0.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=72024&r1=72023&r2=72024&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Mon May 18 13:17:22 2009
@@ -3929,7 +3929,8 @@
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(),
More information about the llvm-commits
mailing list