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

Issue 1391963005: [x64] Use vmovapd and vmovsd when AVX is enabled. (Closed)

Created:
5 years, 2 months ago by alph
Modified:
5 years, 2 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[x64] Use vmovapd and vmovsd when AVX is enabled. R=bmeurer@chromium.org BUG=v8:4406 LOG=N Committed: https://crrev.com/5cda2bcfabc24f988f57ecfc63abc83006245597 Cr-Commit-Position: refs/heads/master@{#31275}

Patch Set 1 #

Patch Set 2 : Fix Win compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -92 lines) Patch
M src/compiler/x64/code-generator-x64.cc View 10 chunks +17 lines, -17 lines 0 comments Download
M src/x64/assembler-x64.h View 1 chunk +8 lines, -0 lines 0 comments Download
M src/x64/assembler-x64.cc View 4 chunks +12 lines, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 14 chunks +19 lines, -19 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 7 chunks +13 lines, -14 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/disasm-x64.cc View 2 chunks +18 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 18 chunks +22 lines, -22 lines 0 comments Download
M src/x64/lithium-gap-resolver-x64.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 9 chunks +48 lines, -8 lines 0 comments Download
M test/cctest/test-assembler-x64.cc View 1 chunk +8 lines, -1 line 0 comments Download
M test/cctest/test-code-stubs-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-disasm-x64.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
alph
5 years, 2 months ago (2015-10-14 23:32:06 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391963005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391963005/1
5 years, 2 months ago (2015-10-14 23:32:54 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel/builds/9580)
5 years, 2 months ago (2015-10-14 23:43:13 UTC) #6
Benedikt Meurer
Nice. LGTM.
5 years, 2 months ago (2015-10-15 03:51:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391963005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391963005/20001
5 years, 2 months ago (2015-10-15 03:52:54 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-15 04:14:36 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/5cda2bcfabc24f988f57ecfc63abc83006245597 Cr-Commit-Position: refs/heads/master@{#31275}
5 years, 2 months ago (2015-10-15 04:15:10 UTC) #11
Weiliang
I wonder if you have measure the performance impact on various benchmarks since after this ...
5 years, 2 months ago (2015-10-15 05:39:23 UTC) #12
Weiliang
On 2015/10/15 05:39:23, Weiliang wrote: > I wonder if you have measure the performance impact ...
5 years, 2 months ago (2015-10-15 05:41:33 UTC) #13
Weiliang
On 2015/10/15 05:39:23, Weiliang wrote: > I wonder if you have measure the performance impact ...
5 years, 2 months ago (2015-10-15 05:41:35 UTC) #14
alph
On 2015/10/15 05:39:23, Weiliang wrote: > I wonder if you have measure the performance impact ...
5 years, 2 months ago (2015-10-16 00:51:55 UTC) #15
alph
On 2015/10/15 05:41:35, Weiliang wrote: > On 2015/10/15 05:39:23, Weiliang wrote: > > I wonder ...
5 years, 2 months ago (2015-10-16 00:56:16 UTC) #16
Benedikt Meurer
On 2015/10/16 00:56:16, alph wrote: > On 2015/10/15 05:41:35, Weiliang wrote: > > On 2015/10/15 ...
5 years, 2 months ago (2015-10-16 03:37:47 UTC) #17
Weiliang
5 years, 2 months ago (2015-10-19 02:59:09 UTC) #18
Message was sent while issue was closed.
On 2015/10/16 03:37:47, Benedikt Meurer wrote:
> On 2015/10/16 00:56:16, alph wrote:
> > On 2015/10/15 05:41:35, Weiliang wrote:
> > > On 2015/10/15 05:39:23, Weiliang wrote:
> > > > I wonder if you have measure the performance impact on various
benchmarks
> > > since
> > > > after this patch, the JIT code generated from full codegen and
crankshaft
> > also
> > > > mix SSE and AVX instructions.
> > > > 
> > > > Thanks
> > > > -Weiliang
> > > 
> > > While originally, we only use AVX for TurboFan. Also TurboFan has internal
> > > switch to turn on/off backend features, which I think is broken now.
> > 
> > Hmm, what is the flag? Strange if something broke, I seem to be using the
same
> > techniques used for e.g. addsd -> vaddsd switching.
> 
> The CpuFeatures flag passed to the InstructionSelector. But I think your patch
> is OK. The AVX flag is used in the InstructionSelector to pick better register
> allocation constraints for (v)addsd and friends. There's no difference for
> (v)movsd and friends from the POV of the register allocator.
Well. mixing AVX-128 and legacy SSE is OK only if there is no AVX-256. V8 JIT
code does not have any AVX-256, so the bug 4406 seems more to be the OS issue. 
But I agree to convert all legacy SSE to AVX-128. Thanks for the job and it
would be great if there is also IA32 port.

Thanks
-Weiliang

Powered by Google App Engine
This is Rietveld 408576698