about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-31 23:21:24 +0000
committerbors <bors@rust-lang.org>2017-07-31 23:21:24 +0000
commitebf74d99b0bc25b5a4e35b0a2865580224ed0ef8 (patch)
tree700b950f7a7619f60aa3cf49dc514a2c53d09335 /src/rustllvm/RustWrapper.cpp
parent37c7d0ebb3ec5b62bd37df9ee8826194e3c6300a (diff)
parent83eb264273fe7ace01b2100c116daa36f06920b8 (diff)
downloadrust-ebf74d99b0bc25b5a4e35b0a2865580224ed0ef8.tar.gz
rust-ebf74d99b0bc25b5a4e35b0a2865580224ed0ef8.zip
Auto merge of #43547 - arielb1:no-borrow-no-check, r=nikomatsakis
borrowck: skip CFG construction when there is nothing to propagate

CFG construction takes a large amount of time and memory, especially for
large constants. If such a constant contains no actions on lvalues, it
can't have borrowck problems and can be ignored by it.

This removes the 4.9GB borrowck peak from #36799. It seems that HIR had
grown by 300MB and MIR had grown by 500MB from the last massif
collection and that remains to be investigated, but this at least shaves
the borrowck peak.

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