diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-19 21:12:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-19 21:12:54 +0000 |
commit | dfdacee2abd53d71a5b9a9f4d38c7973cc722663 (patch) | |
tree | 813e01e9d9fe23932ea336e672c61591f15c6ca3 /lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | c1c9d7e6a95e2090d74f271209fc9337e74ab9bf (diff) |
Generate these labels when we're in "fast" mode, not simply when we're no in
"optimize-for-size" mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 6b78eb9700..205b7b9dff 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -3915,10 +3915,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { if (DW && DW->ValidDebugInfo(RSI.getContext())) { unsigned LabelID = DW->RecordRegionStart(cast<GlobalVariable>(RSI.getContext())); - const Function *F = I.getParent()->getParent(); - - // FIXME: Support more than just -Os. - if (!F->hasFnAttr(Attribute::OptimizeForSize)) + if (Fast) DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(), getRoot(), LabelID)); } @@ -3931,10 +3928,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { if (DW && DW->ValidDebugInfo(REI.getContext())) { unsigned LabelID = DW->RecordRegionEnd(cast<GlobalVariable>(REI.getContext())); - const Function *F = I.getParent()->getParent(); - - // FIXME: Support more than just -Os. - if (!F->hasFnAttr(Attribute::OptimizeForSize)) + if (Fast) DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(), getRoot(), LabelID)); } |