]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #21282 - Aatch:init-memzero, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 19 Jan 2015 12:17:07 +0000 (12:17 +0000)
committerbors <bors@rust-lang.org>
Mon, 19 Jan 2015 12:17:07 +0000 (12:17 +0000)
LLVM gets overwhelmed when presented with a zeroinitializer for a large
type. In unoptimised builds, it generates a long sequence of stores to
memory. In optmised builds, it manages to generate a standard memset of
zero values, but takes a long time doing so.

Call out to the `llvm.memset` function to zero out the memory instead.

Fixes #21264


Trivial merge