<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CheckAdd/Mul should have commutativity optimizations in B3-&gt;Air lowering"
   href="https://bugs.webkit.org/show_bug.cgi?id=151214#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CheckAdd/Mul should have commutativity optimizations in B3-&gt;Air lowering"
   href="https://bugs.webkit.org/show_bug.cgi?id=151214">bug 151214</a>
              from <span class="vcard"><a class="email" href="mailto:fpizlo&#64;apple.com" title="Filip Pizlo &lt;fpizlo&#64;apple.com&gt;"> <span class="fn">Filip Pizlo</span></a>
</span></b>
        <pre>I think that the right story for commutativity is just to allow B3 to commute CheckAdd/CheckMul.  If you are a client of B3 and you want to emit:

    CheckAdd(&#64;x, &#64;y)

And you want your generator to know what &#64;x and &#64;y are *before* commutation, you should do:

    CheckAdd(&#64;x, &#64;y, &#64;x, &#64;y)

We might commute the first two args since those are relevant to the math, but we won't commute the stackmap arguments.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>