about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-03-31 04:09:43 +0000
committerbors <bors@rust-lang.org>2018-03-31 04:09:43 +0000
commit3c5f8509581c1a3072496db04a6af32c76d1af61 (patch)
tree9f85ecbcf0f07ef5788d35b54ea31ef4a8fa9b04 /src/rustllvm/RustWrapper.cpp
parent1c5283b47210e51978a32c6e76d0fb71b03e11f4 (diff)
parentca8176d778cb1b89bf015b032872b6832be0cf8c (diff)
downloadrust-3c5f8509581c1a3072496db04a6af32c76d1af61.tar.gz
rust-3c5f8509581c1a3072496db04a6af32c76d1af61.zip
Auto merge of #49472 - nikomatsakis:nll-optimize-constraint-prop-1, r=pnkfelix
optimize NLL constraint propagation a little

Removes a bone-headed hot spot in NLL constant propagation; we were re-allocating the stack vector and hashmap as we repeated the DFS. This change shares those resources across each call.

It also modifies the constraint list to be a linked list; arguably I should revert that, though, as this didn't turn out to be a perf hit and perhaps the old code was clearer? (Still, the new style appeals to me.)

r? @pnkfelix
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions