HomePhabricator

[WebAssembly] Elide data segments for .bss sections

Description

[WebAssembly] Elide data segments for .bss sections

Summary:
WebAssembly memories are zero-initialized, so when module does not
import its memory initializing .bss sections is guaranteed to be a
no-op. To reduce binary size and initialization time, .bss sections
are simply not emitted into the final binary unless the memory is
imported.

Reviewers: sbc100

Subscribers: dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68965

Details

Committed
tlivelyOct 15 2019, 12:05 PM
Differential Revision
D68965: [WebAssembly] Elide data segments for .bss sections
Parents
rL374939: Add myself to github-usernames.txt
Branches
Unknown
Tags
Unknown