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

Issue 2045633002: Move immintrin/arm_neon includes to where they are used. (Closed)

Created:
4 years, 6 months ago by mtklein_C
Modified:
4 years, 6 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Move immintrin/arm_neon includes to where they are used. On my Mac (so, immintrin), this improves compile time, both wall and cpu, by about 16%. To test I ran this on an SSD with files hot in their caches: $ env CC=/usr/bin/clang CXX=/usr/bin/clang++ ./gyp_skia && \ ninja -C out/Release -t clean && \ time ninja -C out/Release Before: 159 wall / 3367 cpu 159 wall / 3368 cpu After: 137 wall / 2860 cpu 136 wall / 2863 cpu I also tried further refining immintrin down to emmintrin / tmmintrin / smmintrin etc. That made no signficant difference, so I've kept immintrin for its simplicity. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2045633002 CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot TBR=reed@google.com No public API changes. Committed: https://skia.googlesource.com/skia/+/12dfaaa53c23f3d03050bde8f64136ac1f44164a Committed: https://skia.googlesource.com/skia/+/e18fa440e74e9af0324de0a1de9b6ffb0fe3c3d3

Patch Set 1 #

Patch Set 2 : SKNX_NO_SIMD #

Patch Set 3 : wtf #

Total comments: 2

Patch Set 4 : check for libc++ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -6 lines) Patch
M include/core/SkTypes.h View 1 chunk +0 lines, -6 lines 0 comments Download
M include/private/SkFloatingPoint.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkSharedMutex.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M src/opts/SkBlurImageFilter_opts.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/opts/SkNx_neon.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/opts/SkNx_sse.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/opts/SkSwizzler_opts.h View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045633002/1
4 years, 6 months ago (2016-06-06 18:37:11 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot/builds/217)
4 years, 6 months ago (2016-06-06 18:42:02 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045633002/20001
4 years, 6 months ago (2016-06-06 18:46:41 UTC) #7
mtklein_C
4 years, 6 months ago (2016-06-06 18:59:35 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-06 19:07:43 UTC) #11
herb_g
lgtm
4 years, 6 months ago (2016-06-07 16:11:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045633002/20001
4 years, 6 months ago (2016-06-07 16:29:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/10255)
4 years, 6 months ago (2016-06-07 16:32:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045633002/20001
4 years, 6 months ago (2016-06-07 16:34:32 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/12dfaaa53c23f3d03050bde8f64136ac1f44164a
4 years, 6 months ago (2016-06-07 16:35:31 UTC) #21
mtklein
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2046213002/ by mtklein@google.com. ...
4 years, 6 months ago (2016-06-07 23:46:24 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045633002/40001
4 years, 6 months ago (2016-06-09 18:42:03 UTC) #24
mtklein_C
+Ben Please take a look at SkSharedMutex.h?
4 years, 6 months ago (2016-06-09 18:45:38 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-09 18:59:15 UTC) #28
bungeman-skia
Can we also add a #warning You are using gcc with libc++. This is bad ...
4 years, 6 months ago (2016-06-09 19:55:33 UTC) #29
mtklein_C
https://codereview.chromium.org/2045633002/diff/40001/src/core/SkSharedMutex.h File src/core/SkSharedMutex.h (right): https://codereview.chromium.org/2045633002/diff/40001/src/core/SkSharedMutex.h#newcode25 src/core/SkSharedMutex.h:25: #endif On 2016/06/09 19:55:33, bungeman-skia wrote: > Can we ...
4 years, 6 months ago (2016-06-09 20:19:43 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045633002/60001
4 years, 6 months ago (2016-06-09 20:20:24 UTC) #32
bungeman-skia
lgtm >So as you might guess, it is currently broken, and this CL >does nothing ...
4 years, 6 months ago (2016-06-09 20:31:04 UTC) #33
mtklein
On 2016/06/09 20:31:04, bungeman-skia wrote: > lgtm > > >So as you might guess, it ...
4 years, 6 months ago (2016-06-09 20:33:14 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045633002/60001
4 years, 6 months ago (2016-06-09 20:33:36 UTC) #38
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 20:41:00 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/e18fa440e74e9af0324de0a1de9b6ffb0fe3c3d3

Powered by Google App Engine
This is Rietveld 408576698