about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-15 11:57:31 +0000
committerbors <bors@rust-lang.org>2015-05-15 11:57:31 +0000
commit7ebaf1c5c6dcff22d554bc0169a7416f1305c8c4 (patch)
tree57ae62875b2876a0ee90ae8d6b909ab4a498145c /src/test/codegen/stack-alloc-string-slice.cc
parent579e31929feff51dcaf8d444648eff8de735f91a (diff)
parent02603334ae22971409c11e547a3568d70b9c60ac (diff)
downloadrust-7ebaf1c5c6dcff22d554bc0169a7416f1305c8c4.tar.gz
rust-7ebaf1c5c6dcff22d554bc0169a7416f1305c8c4.zip
Auto merge of #25423 - dotdash:assume, r=huonw
The assume intrinsic has a strong, negative impact on compile times, so
we're currently only using it in places where LLVM can simplify it to
nonnull metadata on a load intruction. Unfortunately a recent change
that fixed invalid assume calls introduce new assume calls for which
this simplification can not happen, leading to a massive regression in
compile times in certain cases.

Moving the assumptions from the middle of the function to the beginning
allows the simplification to happen again, bringing compile times back
to their old levels.

Fixes #25393
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions