Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Issue 2085383002: Treat ORs as ADDs for address optimization if operand has enough zero bits on the right (Closed)

Created:
4 years, 6 months ago by manasijm
Modified:
4 years, 5 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Treat ORs as ADDs for address optimization if operand has enough zero bits on the right Index=Var Or Const to Index=Var + Const when Var = Var' << N and log2(Const) <= N or when Var = (2^M) * (2^N) and log2(Const) <= (M+N) BUG=none R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=9dd397d322848cbc9c54e80acb6dc0a2b30aaeb7

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address off by one error, update test #

Patch Set 3 : Fix wrong label in test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -4 lines) Patch
M src/IceTargetLoweringX86BaseImpl.h View 1 4 chunks +58 lines, -4 lines 1 comment Download
M tests_lit/llvm2ice_tests/address-mode-opt.ll View 1 2 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
manasijm
4 years, 6 months ago (2016-06-22 18:54:11 UTC) #2
Jim Stichnoth
Some initial comments. I still want to look deeper at the implementation and the generated ...
4 years, 6 months ago (2016-06-22 20:01:14 UTC) #3
manasijm
https://codereview.chromium.org/2085383002/diff/1/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://codereview.chromium.org/2085383002/diff/1/src/IceTargetLoweringX86BaseImpl.h#newcode5288 src/IceTargetLoweringX86BaseImpl.h:5288: ArithInst->getOp() != InstArithmetic::Or) On 2016/06/22 20:01:14, stichnot wrote: > ...
4 years, 5 months ago (2016-06-27 18:04:19 UTC) #4
Jim Stichnoth
otherwise LGTM https://codereview.chromium.org/2085383002/diff/40001/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://codereview.chromium.org/2085383002/diff/40001/src/IceTargetLoweringX86BaseImpl.h#newcode5315 src/IceTargetLoweringX86BaseImpl.h:5315: return nullptr; Use braces around the return ...
4 years, 5 months ago (2016-06-27 20:33:05 UTC) #5
manasijm
4 years, 5 months ago (2016-06-27 20:47:43 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
9dd397d322848cbc9c54e80acb6dc0a2b30aaeb7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698