Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Wasm data segment initialisers should omit zeros #34594

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR35621
Status NEW
Importance P enhancement
Reported by Nicholas Wilson (ncw@realvnc.com)
Reported on 2017-12-11 05:33:34 -0800
Last modified on 2018-01-09 14:52:27 -0800
Version unspecified
Hardware PC Linux
CC llvm-bugs@lists.llvm.org, nicholas@nicholaswilson.me.uk
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

When LLD creates Wasm output, it should compress the data by splitting the memory initializer around runs of zeros, which are redundant. This should work because the Memory starts off zero-initialised I believe? A large zero-initialised array shouldn't take any space in the output file.

Quuxplusone commented 6 years ago
See duplicate issue in GitHub:
https://github.com/WebAssembly/tool-conventions/issues/33