<div dir="ltr"><div>Hi All,</div><div><br></div><div>I'm tring to use RSQRT instructions on follow case for ARM </div><div>(now what using is sqrt):</div><div><pre class="gmail-bz_comment_text" id="gmail-comment_text_1" style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">    1.0 / sqrt(x)</pre></div><div>The RSQRT instructions(VRSQRTE/VRSQRTS) are vector type, </div><div>but above operation is scalar type. So a transformation must be </div><div>done(transform sqrt pattern to rsqrt).</div><div><br></div><div>I have completed a patch for this, but I made the transformation in the</div><div>backend which will leads to additional latencies.And actually it's not </div><div>reasonable doing transformation in backend.</div><div>I think it would be better done that on IR. I am a novice to llvm.I don't </div><div>know  anything about this subject. If anyone could</div><div>give me some advice would be appreciated.</div><div><br></div><div>Thanks!</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best Regards,<br></div>Jojo<br></div></div>
</div>