<div dir="ltr">On Wed, Sep 26, 2018 at 2:14 PM Kevin Neal via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-6887647197265214724WordSection1">
<p class="MsoNormal"><span style="font-family:"Courier New";color:#44546a">Do we really want to have fneg be the only instruction with guaranteed no side effects? That just sounds like a gotcha waiting to happen. Or it could result in horrible code depending
on the architecture.</span></p></div></div></blockquote><div><br></div><div>That's not quite right. FNEG(X) and FSUB(-0.0, X) are not the same operation. They are *very* similar, but still different at an edge case(s). The current transformations that occur in LLVM are unsafe. </div></div></div>