commit | 8525c3297fbf841e6c48ebd2af10f5d9ef66848b | [log] [tgz] |
---|---|---|
author | Jim Stichnoth <stichnot@chromium.org> | Mon Jun 22 10:36:42 2015 -0700 |
committer | Jim Stichnoth <stichnot@chromium.org> | Mon Jun 22 10:36:42 2015 -0700 |
tree | e0f682ad2b4e3823d48b7e89c0d5141bf175ad02 | |
parent | eafb56cbab02dbf11071efbc56b4a7098bd40dc7 [diff] |
Subzero: Apply commutativity to the RMW optimization. The read-modify-write (RMW) optimization looks for patterns like this: a = Load addr b = <op> a, other Store b, addr and essentially transforms them into this: RMW <op>, addr, other This CL also applies the transformation when the middle instruction is b = <op> other, a and <op> is commutative. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4095 R=jpp@chromium.org Review URL: https://codereview.chromium.org/1193103005