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

Issue 2077503002: Subzero: Build a better bitcast. (Closed)

Created:
4 years, 6 months ago by Jim Stichnoth
Modified:
4 years, 6 months ago
Reviewers:
Eric Holk, Karl, John, manasijm
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: Build a better bitcast. The x86 lowering of bitcast between integers and floats forced the transfer through a stack slot (the original implementer *cough* *cough* wasn't aware of the movd instruction). This requires excess instructions, but also a store to memory followed immediately by a load from that location is very slow. This fixes the problem by using the movd instruction instead. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=a1410df95992d58e06ccdacd62896dd2a7bffb93

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -19 lines) Patch
M src/IceTargetLoweringX86BaseImpl.h View 1 chunk +4 lines, -18 lines 0 comments Download
M tests_lit/llvm2ice_tests/bitcast.ll View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (3 generated)
Jim Stichnoth
This gives ~3% improvement on 177.mesa. The pattern doesn't really affect any hot blocks in ...
4 years, 6 months ago (2016-06-16 04:49:03 UTC) #3
John
lgtm
4 years, 6 months ago (2016-06-16 13:20:35 UTC) #4
Jim Stichnoth
4 years, 6 months ago (2016-06-16 17:02:56 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
a1410df95992d58e06ccdacd62896dd2a7bffb93 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698