<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-05-31 21:37 GMT+02:00 Friedman, Eli via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 5/31/2018 11:28 AM, whitequark via llvm-dev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2018-05-30 16:57, Amaury Séchet via llvm-dev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
These opcodes have been deprecated about a year ago, but still in use<br>
in various backend.<br>
<br>
In <a href="https://reviews.llvm.org/D47422" rel="noreferrer" target="_blank">https://reviews.llvm.org/D4742<wbr>2</a> I would like to change the behavior<br>
of the backend to not enable the use of these opcodes by default. The<br>
opcode remains usable by any backend that wish to use them, but that<br>
should limit the situation where newer backend just use them as they<br>
are enabled by default.<br>
<br>
This shouldn't break any out of tree backend, however, it may cause<br>
misoptimisation if the backend dev do not activate these opcodes via<br>
setOperationAction and rely on them for some of their optimizations.<br>
</blockquote>
<br>
Thanks for heads up, this will impact the OR1K backend.<br>
<br>
Is there any guidance for migrating to U*O/*CARRY?<br>
<br>
</blockquote></span>
If your target has a dedicated flags/carry register (x86/ARM/etc.), see <a href="https://reviews.llvm.org/D35192" rel="noreferrer" target="_blank">https://reviews.llvm.org/D3519<wbr>2</a> for a description of how to add the necessary conversions to get efficient lowering.  Otherwise, the correct lowering should be obvious; see <a href="https://reviews.llvm.org/D47559" rel="noreferrer" target="_blank">https://reviews.llvm.org/D4755<wbr>9</a> .<span class="im HOEnZb"><br>
<br>
-Eli<br>
<br>
-- <br>
Employee of Qualcomm Innovation Center, Inc.<br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project<br>
<br></span><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</div></div></blockquote></div><br></div><div class="gmail_extra">These guidelines are good. The X86 backend does something very similar.<br></div></div>