]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #25423 - dotdash:assume, r=huonw
authorbors <bors@rust-lang.org>
Fri, 15 May 2015 11:57:31 +0000 (11:57 +0000)
committerbors <bors@rust-lang.org>
Fri, 15 May 2015 11:57:31 +0000 (11:57 +0000)
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


Trivial merge