]> git.lizzy.rs Git - rust.git/commit
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)
commit43f2c199e4e87d7ccd15658c52ad8dc5a1d54fb9
tree3da57695cf99738e7df9b11dd924598f3f35ba61
parent7b87900d72cf53037119e3bac1506a9786ca508a
parent25a4adc62f4a743b6696a248ef365aaaaee06362
Auto merge of #21282 - Aatch:init-memzero, r=alexcrichton

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