[llvm-commits] [llvm] r102653 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Devang Patel
dpatel at apple.com
Thu Apr 29 11:50:36 PDT 2010
Author: dpatel
Date: Thu Apr 29 13:50:36 2010
New Revision: 102653
URL: http://llvm.org/viewvc/llvm-project?rev=102653&view=rev
Log:
DO not push DBG_VALUE machine instructions for inlined fuction arguments in entry block.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=102653&r1=102652&r2=102653&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Thu Apr 29 13:50:36 2010
@@ -3691,6 +3691,13 @@
if (!isa<Argument>(V))
return false;
+ // Ignore inlined function arguments here.
+ DIVariable DV(Variable);
+ if (DV.getContext().isSubprogram()
+ && DISubprogram(DV.getContext().getNode()).getLinkageName()
+ != cast<Argument>(V)->getParent()->getName())
+ return false;
+
MachineFunction &MF = DAG.getMachineFunction();
MachineBasicBlock *MBB = FuncInfo.MBBMap[DI.getParent()];
if (MBB != &MF.front())
More information about the llvm-commits
mailing list