| commit | 2e4b960b20e6ed2ad9453657fe8d34d0e7fd933c | [log] [tgz] |
|---|---|---|
| author | Manasij Mukherjee <manasijm@google.com> | Tue Jun 21 14:22:43 2016 -0700 |
| committer | Manasij Mukherjee <manasijm@google.com> | Tue Jun 21 14:22:43 2016 -0700 |
| tree | 9fb8dcbbcf8731b11b9df8921d253ae24a92c965 | |
| parent | 227c9f39303e6357adcfeb4b94a905681f3616f0 [diff] |
Catch addition patterns for Index in Address Optimization
Index is Index=Var+Const ==>
set Index=Var, Offset+=(Const<<Shift)
Index is Index=Const+Var ==>
set Index=Var, Offset+=(Const<<Shift)
Index is Index=Var-Const ==>
set Index=Var, Offset-=(Const<<Shift)
BUG=none
R=stichnot@chromium.org
Review URL: https://codereview.chromium.org/2084793002 .