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

Issue 2473923003: [turbofan][x64] Improve code generation for Float64LessThan with Float64Abs. (Closed)

Created:
4 years, 1 month ago by Benedikt Meurer
Modified:
4 years, 1 month ago
Reviewers:
Michael Starzinger
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan][x64] Improve code generation for Float64LessThan with Float64Abs. During instruction selection, match the pattern Float64LessThan(#0.0, Float64Abs(x)) which TurboFan generates for NumberToBoolean in the general case, and which evaluates to false if x is 0, -0 or NaN, and compile this to a simple (v)ucomisd using not_equal flags condition, which avoids the costly Float64Abs. Also consistently generate this pattern in TurboFan and the code stubs/interpreter for ToBoolean. R=mstarzinger@chromium.org BUG=v8:5267 Committed: https://crrev.com/cdf9a4062ec6aa8f7c180e3f3e9f5c7130eb199a Cr-Commit-Position: refs/heads/master@{#40740}

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Fix for realz. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -23 lines) Patch
M src/code-stub-assembler.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/compiler/effect-control-linearizer.cc View 1 2 2 chunks +8 lines, -17 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 chunks +34 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Benedikt Meurer
4 years, 1 month ago (2016-11-03 13:43:46 UTC) #1
Michael Starzinger
LGTM (rubber-stamped).
4 years, 1 month ago (2016-11-03 13:47:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473923003/1
4 years, 1 month ago (2016-11-03 13:47:52 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/11524) v8_linux64_avx2_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-03 14:03:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473923003/20001
4 years, 1 month ago (2016-11-03 16:10:58 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/7271)
4 years, 1 month ago (2016-11-03 16:14:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473923003/40001
4 years, 1 month ago (2016-11-03 18:20:18 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-03 18:47:27 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:21:27 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cdf9a4062ec6aa8f7c180e3f3e9f5c7130eb199a
Cr-Commit-Position: refs/heads/master@{#40740}

Powered by Google App Engine
This is Rietveld 408576698