[llvm-commits] [llvm] r102653 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Dale Johannesen dalej at apple.com
Thu Apr 29 11:54:01 PDT 2010


On Apr 29, 2010, at 11:50 AMPDT, Devang Patel wrote:
> 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

Is this sufficient?  What about recursive inlines?

> +  // 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