about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2019-01-10 19:28:42 +0100
committerBjörn Steinbrink <bsteinbr@gmail.com>2019-01-10 21:28:06 +0100
commit5f402b827726607b04887c7c7b8d8b95cce8f487 (patch)
tree0862e62ffbc115f2119bdeba949e0a944c176157 /src/rustllvm/RustWrapper.cpp
parent07600c939b594b39f560bc969caca2e92498435a (diff)
downloadrust-5f402b827726607b04887c7c7b8d8b95cce8f487.tar.gz
rust-5f402b827726607b04887c7c7b8d8b95cce8f487.zip
Add a fast path for identical regions in lub_concrete_regions
In functions with lots of region constraint, if the fixed point
iteration converges only slowly, a lot of the var/var constraints will
have equal regions most of the time. Yet, we still perform the LUB
calculation and try to intern the result. Especially the latter incurs
quite some overhead.

This reduces the take taken by the item bodies checking pass for the
unicode_normalization crate by about 75%.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions