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

Issue 14060026: PNaCl: Add NoAlias attributes in ExpandByVal and ExpandVarArgs passes (Closed)

Created:
7 years, 8 months ago by Mark Seaborn
Modified:
7 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
http://git.chromium.org/native_client/pnacl-llvm.git@master
Visibility:
Public.

Description

PNaCl: Add NoAlias attributes in ExpandByVal and ExpandVarArgs passes This could help prevent these expansion passes from inhibiting optimisations than run after the expansion. e.g. It gives the optimiser more freedom to move around reads from the varargs buffer because they will not alias writes to other locations. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3400 TEST=PNaCl toolchain trybots + GCC torture tests + LLVM test suite + Spec2k Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=0e6d484

Patch Set 1 #

Total comments: 4

Patch Set 2 : Put noalias on the varargs function, not call #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M lib/Transforms/NaCl/ExpandByVal.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M lib/Transforms/NaCl/ExpandVarArgs.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M test/Transforms/NaCl/expand-byval.ll View 5 chunks +6 lines, -6 lines 2 comments Download
M test/Transforms/NaCl/expand-varargs.ll View 1 1 chunk +1 line, -1 line 0 comments Download
M test/Transforms/NaCl/expand-varargs-attrs.ll View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Mark Seaborn
As suggested in https://codereview.chromium.org/14317008/.
7 years, 8 months ago (2013-04-26 15:31:13 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/14060026/diff/1/test/Transforms/NaCl/expand-varargs-attrs.ll File test/Transforms/NaCl/expand-varargs-attrs.ll (right): https://codereview.chromium.org/14060026/diff/1/test/Transforms/NaCl/expand-varargs-attrs.ll#newcode13 test/Transforms/NaCl/expand-varargs-attrs.ll:13: ; CHECK: define void @func_with_arg_attrs(%MyStruct* byval, i8* %varargs) { ...
7 years, 8 months ago (2013-04-26 16:43:09 UTC) #2
Mark Seaborn
https://codereview.chromium.org/14060026/diff/1/test/Transforms/NaCl/expand-varargs-attrs.ll File test/Transforms/NaCl/expand-varargs-attrs.ll (right): https://codereview.chromium.org/14060026/diff/1/test/Transforms/NaCl/expand-varargs-attrs.ll#newcode13 test/Transforms/NaCl/expand-varargs-attrs.ll:13: ; CHECK: define void @func_with_arg_attrs(%MyStruct* byval, i8* %varargs) { ...
7 years, 8 months ago (2013-04-26 16:52:58 UTC) #3
jvoung (off chromium)
lgtm
7 years, 8 months ago (2013-04-26 19:35:09 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/14060026/diff/5001/test/Transforms/NaCl/expand-byval.ll File test/Transforms/NaCl/expand-byval.ll (right): https://codereview.chromium.org/14060026/diff/5001/test/Transforms/NaCl/expand-byval.ll#newcode33 test/Transforms/NaCl/expand-byval.ll:33: ; CHECK-NEXT: call void @ext_byval_func(%MyStruct* noalias %ptr.byval_copy) Oh, also ...
7 years, 8 months ago (2013-04-26 19:36:25 UTC) #5
Mark Seaborn
https://codereview.chromium.org/14060026/diff/5001/test/Transforms/NaCl/expand-byval.ll File test/Transforms/NaCl/expand-byval.ll (right): https://codereview.chromium.org/14060026/diff/5001/test/Transforms/NaCl/expand-byval.ll#newcode33 test/Transforms/NaCl/expand-byval.ll:33: ; CHECK-NEXT: call void @ext_byval_func(%MyStruct* noalias %ptr.byval_copy) On 2013/04/26 ...
7 years, 8 months ago (2013-04-26 19:59:09 UTC) #6
Mark Seaborn
7 years, 7 months ago (2013-05-09 15:17:13 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r0e6d484 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698