<html><head><base href="x-msg://46/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 13, 2011, at 12:18 AM, Shajrawi, Yousef wrote:</div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Optima; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="EN-US" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Thanks for the helpful reply. The bug I encountered caused the DBG_VALUE instructions not to be written back with references to the correct registers/spills… (unless I kept the DBG_VALUE for the corner-case I described in the bug)<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">What happened in when reading the DWARF I couldn’t see that variable associated with its register, a dump of the output assembly/sections/..etc showed that the variable is not in the “.section                .debug_info”.<o:p></o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">I found the problem on AMD’s OpenCL Compiler (<a href="http://llvm.org/devmtg/2010-11/Villmow-OpenCL.pdf" style="color: blue; text-decoration: underline; ">http://llvm.org/devmtg/2010-11/Villmow-OpenCL.pdf</a><span class="Apple-converted-space"> </span>) on the AMDIL Codegen backend (slide 3), Unfortunately I wasn’t able to reproduce it with other backbends (x86) that have much less physical registers/more spills.</span></div></div></div></span></blockquote><div><br></div><div>That makes it difficult to help you.</div><div><br></div><div>You can try using llc -debug -print-machineinstrs -debug-pass=Executions to find out what happened to your DBG_VALUE.</div><div><br></div><div>/jakob</div><div><br></div></div></body></html>