<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->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->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@apple.com" title="Filip Pizlo <fpizlo@apple.com>"> <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(@x, @y)
And you want your generator to know what @x and @y are *before* commutation, you should do:
CheckAdd(@x, @y, @x, @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>