<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Hi Eric,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">Thanks for patch information. I have checked the patch with my code and I see that it works. </SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN><SPAN style="RIGHT: auto">But when I extract the variable and check the metadata information to retrieve the scope information, </SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto">I do not get exact scope, after optimization. </SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto">As you said that this is a work in progress, so can we expect full version on this in llvm3.3 release ?</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">Regards,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">Pankaj</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div><BR></div>
<DIV style="FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Eric Christopher <echristo@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Pankaj Gode <godepankaj@yahoo.com>; Adrian Prantl <aprantl@apple.com> <BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> llvm Developers <llvmdev@cs.uiuc.edu> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, April 29, 2013 12:24 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [LLVMdev] LowerDbgDeclare results in redeclaration of local variable<BR></FONT></DIV>
<DIV style="RIGHT: auto" class=y_msg_container><BR>There was a patch committed the other day that should, at least, work<BR>around some of the behavior you describe. Optimized debug info is an<BR>area that's being worked on in ToT and previous releases are<BR>particularly bad. I'd use that.<BR><BR>-eric<BR><BR>On Mon, Apr 29, 2013 at 7:02 AM, Pankaj Gode <<A href="mailto:godepankaj@yahoo.com" ymailto="mailto:godepankaj@yahoo.com">godepankaj@yahoo.com</A>> wrote:<BR>> Hi All,<BR>><BR>> Due to 'LowerDbgDeclare' call ( as part of 'instruction combining'<BR>> optimization), a local variable gets declared and initialized inside the<BR>> basic blocks it is used in.<BR>> Is there anyway I can avoid this ?<BR>><BR>> This is with reference with my previous question.<BR>> <A href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-April/061644.html"
 target=_blank>http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-April/061644.html</A><BR>><BR>><BR>> Regards,<BR>> Pankaj<BR>><BR>> _______________________________________________<BR>> LLVM Developers mailing list<BR>> <A href="mailto:LLVMdev@cs.uiuc.edu" ymailto="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</A>        <A href="http://llvm.cs.uiuc.edu/" target=_blank>http://llvm.cs.uiuc.edu/</A><BR>> <A href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target=_blank>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A><BR>><BR><BR><BR></DIV></DIV></DIV></div></body></html>