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

Issue 1406593003: Optimize 64-bit compares with zero (Closed)

Created:
5 years, 2 months ago by sehr
Modified:
5 years, 2 months ago
Reviewers:
Jim Stichnoth, John
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

Optimize 64-bit compares with zero Comparisons with zero can be done with no branches in most cases and with simpler sequences of operations. BUG= R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=5c87542ab707c91b1cc0d3d32ff4073e27f9bdf7

Patch Set 1 #

Patch Set 2 : After rebase #

Patch Set 3 : Simplify header file #

Total comments: 4

Patch Set 4 : Add test for lowering cases, cover 32-bit as well. #

Total comments: 6

Patch Set 5 : Add isZero utility function, fix comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -10 lines) Patch
M crosstest/test_icmp.h View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M crosstest/test_icmp.cpp View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M crosstest/test_icmp_main.cpp View 2 chunks +76 lines, -0 lines 0 comments Download
M src/IceInstX86BaseImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 3 4 3 chunks +100 lines, -4 lines 0 comments Download
M tests_lit/assembler/x86/jump_encodings.ll View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A tests_lit/llvm2ice_tests/icmp-with-zero.ll View 1 2 3 1 chunk +231 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
sehr
Thanks in advance.
5 years, 2 months ago (2015-10-14 16:56:00 UTC) #2
Jim Stichnoth
otherwise lgtm https://chromiumcodereview.appspot.com/1406593003/diff/40001/crosstest/test_icmp.cpp File crosstest/test_icmp.cpp (right): https://chromiumcodereview.appspot.com/1406593003/diff/40001/crosstest/test_icmp.cpp#newcode32 crosstest/test_icmp.cpp:32: bool icmp_zero##cmp(uint8_t a) { return a op ...
5 years, 2 months ago (2015-10-14 18:04:49 UTC) #3
sehr
Thanks for the review and the help getting this going. PTAL. https://chromiumcodereview.appspot.com/1406593003/diff/40001/crosstest/test_icmp.cpp File crosstest/test_icmp.cpp (right): ...
5 years, 2 months ago (2015-10-15 00:19:34 UTC) #4
Jim Stichnoth
still lgtm https://chromiumcodereview.appspot.com/1406593003/diff/60001/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://chromiumcodereview.appspot.com/1406593003/diff/60001/src/IceTargetLoweringX86BaseImpl.h#newcode2775 src/IceTargetLoweringX86BaseImpl.h:2775: (Ty == IceType_i32 || Ty == IceType_i16 ...
5 years, 2 months ago (2015-10-15 00:48:48 UTC) #5
sehr
Thanks again. Waiting for spec to finish. https://chromiumcodereview.appspot.com/1406593003/diff/60001/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://chromiumcodereview.appspot.com/1406593003/diff/60001/src/IceTargetLoweringX86BaseImpl.h#newcode2775 src/IceTargetLoweringX86BaseImpl.h:2775: (Ty == ...
5 years, 2 months ago (2015-10-15 17:33:46 UTC) #6
sehr
5 years, 2 months ago (2015-10-15 17:38:58 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
5c87542ab707c91b1cc0d3d32ff4073e27f9bdf7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698