Hi. <br>I'm in the process of optimizing a relatively large kernel and it would help me to match up which assembly instructions corresponds to which source lines. For example, the original code indexed into a global array using the same index multiple times and at first I assumed the compiler would optimize it to be a single load but after changing the code to store the value in a local variable I saw a performance boost. Having the assembly with source I might have noticed some inefficiencies. <br>Thanks <br><br><div class="gmail_quote">On Sun, Nov 9, 2014, 9:45 PM Zhigang Gong <<a href="mailto:zhigang.gong@linux.intel.com">zhigang.gong@linux.intel.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is doable but hasn't been done yet. It need to get LOC information from the LLVM/Clang<br>
side, and then map this LOC information to GEN IR and to the finally assembly code after<br>
the post instruction scheduling.<br>
<br>
Could you share with us what's the scenario you need to get this information? Thanks.<br>
<br>
On Sun, Nov 09, 2014 at 07:06:06PM +0000, Tony Moore wrote:<br>
> Hello-<br>
> Is there a method to match up a line of assembly from the OCL_OUTPUT_ASM=1<br>
> option to the OpenCL source code? If not, do you know what kind of changes<br>
> would need to be done?<br>
><br>
> thanks!<br>
<br>
> ______________________________<u></u>_________________<br>
> Beignet mailing list<br>
> <a href="mailto:Beignet@lists.freedesktop.org" target="_blank">Beignet@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/beignet" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/beignet</a><br>
<br>
</blockquote></div>