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

Issue 1148023003: Subzero: Use setcc for most fcmp conditions, instead of control flow. (Closed)

Created:
5 years, 7 months ago by Jim Stichnoth
Modified:
5 years, 7 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: Use setcc for most fcmp conditions, instead of control flow. For C/C++ semantics, this applies to all the FP comparisons except == and != which require two comparisons due to ordered/unordered requirements. For == and !=, two comparisons and control flow are still used. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4095 TEST= crosstest/test_fcmp R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=e94740a0deb3ace2a84dfcd1846af739fb850136

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add an assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -39 lines) Patch
M src/IceTargetLoweringX8632.cpp View 1 2 chunks +11 lines, -5 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.pnacl.ll View 30 chunks +34 lines, -34 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
Not sure if this actually gives speedups, but it's definitely the right thing to do.
5 years, 7 months ago (2015-05-22 13:40:45 UTC) #2
jvoung (off chromium)
LGTM https://codereview.chromium.org/1148023003/diff/1/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/1148023003/diff/1/src/IceTargetLoweringX8632.cpp#newcode2723 src/IceTargetLoweringX8632.cpp:2723: _setcc(Dest, TableFcmp[Index].C1); maybe assert that Default == 1 ...
5 years, 7 months ago (2015-05-22 16:46:48 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/1148023003/diff/1/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/1148023003/diff/1/src/IceTargetLoweringX8632.cpp#newcode2723 src/IceTargetLoweringX8632.cpp:2723: _setcc(Dest, TableFcmp[Index].C1); On 2015/05/22 16:46:48, jvoung wrote: > maybe ...
5 years, 7 months ago (2015-05-22 20:13:00 UTC) #4
Jim Stichnoth
5 years, 7 months ago (2015-05-22 20:17:38 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
e94740a0deb3ace2a84dfcd1846af739fb850136 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698