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

Issue 14197004: Use unique'ed types for varargs expansion instead of non-unique named types. (Closed)

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

Description

Use unique'ed types for varargs expansion instead of non-unique named types. Saves a tiny bit of space for var-args heavy bitcode programs, since the anonymous types get unique'ed. E.g., saves 20KB out of 1.6MB in spec gcc when comparing the gzipped files, or about 100KB when not zipped. This is only a savings with the current wire format. If we change the alloca, etc. to only have sizes and not struct types then we would also not have this duplication. Just happened to notice while looking through code for what struct types remain used in the bitcode. random cleanup for: BUG= https://code.google.com/p/nativeclient/issues/detail?id=3338 R=mseaborn@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=1174111

Patch Set 1 #

Total comments: 2

Patch Set 2 : move comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -30 lines) Patch
M lib/Transforms/NaCl/ExpandVarArgs.cpp View 1 chunk +1 line, -1 line 0 comments Download
M test/Transforms/NaCl/expand-varargs.ll View 1 5 chunks +15 lines, -23 lines 0 comments Download
M test/Transforms/NaCl/expand-varargs-attrs.ll View 3 chunks +3 lines, -3 lines 0 comments Download
M test/Transforms/NaCl/expand-varargs-struct.ll View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jvoung (off chromium)
7 years, 8 months ago (2013-04-11 23:05:37 UTC) #1
Mark Seaborn
Doesn't this reduce readability of the partially-expanded IR? Since the plan is to expand out ...
7 years, 8 months ago (2013-04-11 23:15:29 UTC) #2
jvoung (off chromium)
On 2013/04/11 23:15:29, Mark Seaborn wrote: > Doesn't this reduce readability of the partially-expanded IR? ...
7 years, 8 months ago (2013-04-12 00:37:40 UTC) #3
Mark Seaborn
On 11 April 2013 17:37, <jvoung@chromium.org> wrote: > On 2013/04/11 23:15:29, Mark Seaborn wrote: > ...
7 years, 8 months ago (2013-04-12 19:27:23 UTC) #4
jvoung (off chromium)
I think I'll commit this, just so that size comparisons from when we do switch ...
7 years, 7 months ago (2013-04-29 20:56:20 UTC) #5
jvoung (off chromium)
7 years, 7 months ago (2013-04-29 22:52:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r1174111 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698