about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-09-03 17:41:08 -0700
committerGitHub <noreply@github.com>2016-09-03 17:41:08 -0700
commit1ca1de6b26ec4740e3f0e8bead7002589024bd14 (patch)
tree0354a4cf3e8befbd39dda472a6e57b0efc3c856b /src/rustllvm/RustWrapper.cpp
parent70598e04f922a0f451f63cec4134bd28b31c6411 (diff)
parentf5c775274275fa34b068ddf802bd528f790f7af8 (diff)
downloadrust-1ca1de6b26ec4740e3f0e8bead7002589024bd14.tar.gz
rust-1ca1de6b26ec4740e3f0e8bead7002589024bd14.zip
Auto merge of #36124 - eddyb:fast-array-init, r=alexcrichton
Fix optimization regressions for operations on [x; n]-initialized arrays.

Fixes #35662 by using `!=` instead of `<` as the stop condition for `[x; n]` initialization loops.
Also included is https://github.com/eddyb/llvm/commit/cc2009f02d3b9a3c05be939978212e832310b3d6, a hack to run the GVN pass twice, another time after InstCombine.
This hack results in removal of redundant `memset` and `memcpy` calls (from loops over arrays).

cc @nrc Can we get performance numbers on this? Not sure if it regresses anything else.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions