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

Issue 857403002: Emit atomic memory order other than seq_cst on demand only (Closed)

Created:
5 years, 11 months ago by JF
Modified:
5 years, 11 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Emit atomic memory order other than seq_cst on demand only The following CL: https://codereview.chromium.org/791053006/ Taught PNaCl to support atomic memory orderings other than seq_cst (which was the only supported memory ordering at launch). This is desirable for performance, but it causes issues for users when rolling out the new SDK: old versions of the translator don't accept anything but seq_cst and the canary SDK emits them, which makes testing harder. This CL makes the SDK default to emitting only seq_cst memory ordering, but leaves the translator as is (i.e. it still accepts the new memory ordering). This makes it easier to roll out this new feature, and users can still opt-in to emitting the new memory order by specifying -pnacl-memory-order-seq-cst-only=false. The flag currently defaults to seq_cst only, and for Chrome 43 it will be made to default to false (i.e. acq/rel/acq_rel/seq_cst can be emitted). R=jvoung@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=4029 TEST= make check Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=0cebd5960dcd213d379ab504b6ae21b6e0837c93

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add test for -pnacl-memory-order-seq-cst-only=true #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
M lib/Transforms/NaCl/RewriteAtomics.cpp View 3 chunks +13 lines, -2 lines 0 comments Download
A test/Transforms/NaCl/atomic/atomic-seq-cst-only.ll View 1 1 chunk +51 lines, -0 lines 0 comments Download
M test/Transforms/NaCl/atomic/atomic_others.ll View 1 chunk +1 line, -1 line 0 comments Download
M test/Transforms/NaCl/atomic/lock_.ll View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
JF
5 years, 11 months ago (2015-01-20 22:14:42 UTC) #1
jvoung (off chromium)
LGTM -- from what I remember, there might be plumbing needed if a user wants ...
5 years, 11 months ago (2015-01-20 22:28:32 UTC) #2
JF
On 2015/01/20 22:28:32, jvoung wrote: > LGTM -- from what I remember, there might be ...
5 years, 11 months ago (2015-01-21 03:50:03 UTC) #3
JF
5 years, 11 months ago (2015-01-21 03:50:55 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
0cebd5960dcd213d379ab504b6ae21b6e0837c93 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698