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

Issue 1394413002: Subzero: Don't "and" i1 values with 1. (Closed)

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

Subzero: Don't "and" i1 values with 1. In x86 lowering, i1 values are held in i8 register and memory slots. We were conservatively "and"ing them with 1 before zero-extending them for some lowering operations, but this "and" with 1 is unnecessary and just clutters the code. We continue the invariant that all i1-produced values in an i8 slot are either 0 or 1. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4095 R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=485d0773c9fd0605cc126e7e9020464a89ade564

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -16 lines) Patch
M src/IceTargetLoweringX86BaseImpl.h View 2 chunks +1 line, -7 lines 2 comments Download
M tests_lit/llvm2ice_tests/64bit.pnacl.ll View 1 chunk +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.convert.ll View 2 chunks +2 lines, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/test_i1.ll View 5 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
5 years, 2 months ago (2015-10-09 00:09:19 UTC) #2
John
lgtm "link" this to the x86-32 target lowering bug. LGTM otherwise. https://chromiumcodereview.appspot.com/1394413002/diff/1/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (left): ...
5 years, 2 months ago (2015-10-09 12:14:09 UTC) #3
Jim Stichnoth
https://chromiumcodereview.appspot.com/1394413002/diff/1/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (left): https://chromiumcodereview.appspot.com/1394413002/diff/1/src/IceTargetLoweringX86BaseImpl.h#oldcode2050 src/IceTargetLoweringX86BaseImpl.h:2050: if (Src0RM->getType() == IceType_i1) { On 2015/10/09 12:14:08, John ...
5 years, 2 months ago (2015-10-09 13:50:22 UTC) #4
Jim Stichnoth
5 years, 2 months ago (2015-10-09 13:52:24 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
485d0773c9fd0605cc126e7e9020464a89ade564 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698