[LLVMdev] LowerDbgDeclare results in redeclaration of local variable

Pankaj Gode godepankaj at yahoo.com
Mon Apr 29 05:01:06 PDT 2013


Hi Eric,
 
Thanks for patch information. I have checked the patch with my code and I see that it works. 
But when I extract the variable and check the metadata information to retrieve the scope information, 
I do not get exact scope, after optimization. 
As you said that this is a work in progress, so can we expect full version on this in llvm3.3 release ?
 
Regards,
Pankaj
 


________________________________
From: Eric Christopher <echristo at gmail.com>
To: Pankaj Gode <godepankaj at yahoo.com>; Adrian Prantl <aprantl at apple.com> 
Cc: llvm Developers <llvmdev at cs.uiuc.edu> 
Sent: Monday, April 29, 2013 12:24 PM
Subject: Re: [LLVMdev] LowerDbgDeclare results in redeclaration of local variable


There was a patch committed the other day that should, at least, work
around some of the behavior you describe. Optimized debug info is an
area that's being worked on in ToT and previous releases are
particularly bad. I'd use that.

-eric

On Mon, Apr 29, 2013 at 7:02 AM, Pankaj Gode <godepankaj at yahoo.com> wrote:
> Hi All,
>
> Due to 'LowerDbgDeclare' call ( as part of 'instruction combining'
> optimization), a local variable gets declared and initialized inside the
> basic blocks it is used in.
> Is there anyway I can avoid this ?
>
> This is with reference with my previous question.
> http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-April/061644.html
>
>
> Regards,
> Pankaj
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu        http://llvm.cs.uiuc.edu/
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130429/29f3b34d/attachment.html>


More information about the llvm-dev mailing list