<div dir="ltr">Justin and I discussed this issue in <a href="http://reviews.llvm.org/D9063">http://reviews.llvm.org/D9063</a>. The conclusion is that, while Justin is working on a comprehensive fix which can take a few days, I can workaround it by canonicalization as implemented in this patch. <br><div><br></div><div>Anyway, this patch is incorrect because generic(<global var>+<const offset>) is unacceptable by the NVIDIA driver. I already abandoned it. </div><div><br></div><div>Jingyue</div></div><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 11:30 AM <a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a> <<a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> outermost possible level, so that NVPTXAsmPrinter can print it more likely correctly.<br>
<br>
<br>
You're just hiding a bug?<br>
<br>
<br>
<a href="http://reviews.llvm.org/D9204" target="_blank">http://reviews.llvm.org/D9204</a><br>
<br>
EMAIL PREFERENCES<br>
<a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</blockquote></div>