<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 30, 2015 at 9:34 AM, Justin Holewinski <span dir="ltr"><<a href="mailto:jholewinski@nvidia.com" target="_blank">jholewinski@nvidia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
> On Jun 26, 2015, at 4:20 AM, Chandler Carruth <<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>> wrote:<br>
><br>
> This doesn't seem like the right approach at all.<br>
><br>
> I don't think we want to use cost heuristics to dictate the canonical form in the IR. It makes the canonicalization *much* more complex and hard to manage.<br>
<br>
</span>I agree.  I would prefer not to mix the concepts of legality and performance here.<br>
<br>
><br>
> I think that NVPTX should either change the datalayout to make i64 illegal (and that seems reasonable for instcombine to respect, but that would for example mean it would be an *absolute* decision, not a cost decision) or you'll need to do a late transform to narrow the operations as much as possible.<br>
<br>
I don’t see how we could remove i64 as a legal type in NVPTX.  Our pointer size is 64-bit, so we need a container for pointers.<br></blockquote><div><br></div><div>I think other folks are doing (or would like to be doing) this sort of thing: <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-June/087248.html">http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-June/087248.html</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
><br>
><br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10750&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=G0mkDrOFUNMAJ20FwW42T0NQsaBB9c1WM-otMJQNB9s&s=CHMMTUDoarq50mpXy1erXG8DrdYChE-gIo4kfvOpllg&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/D10750</a><br>
><br>
> EMAIL PREFERENCES<br>
>  <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_settings_panel_emailpreferences_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=G0mkDrOFUNMAJ20FwW42T0NQsaBB9c1WM-otMJQNB9s&s=X1Uu4c_hVyVHaDJRHA0UUu44vSb0HxiJf8CUPmR37HQ&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
><br>
><br>
<br>
<br>
</span>-----------------------------------------------------------------------------------<br>
This email message is for the sole use of the intended recipient(s) and may contain<br>
confidential information.  Any unauthorized review, use, disclosure or distribution<br>
is prohibited.  If you are not the intended recipient, please contact the sender by<br>
reply email and destroy all copies of the original message.<br>
-----------------------------------------------------------------------------------<br>
</blockquote></div><br></div></div>