about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-07-29 20:30:44 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-07-31 15:17:30 +0300
commit83eb264273fe7ace01b2100c116daa36f06920b8 (patch)
tree3f1e737e28b060271cd68025c55fdf38e9877c1a /src/rustllvm/RustWrapper.cpp
parent91aff5775d3b4a95e2b0c2fe50785f3d28fa3dd8 (diff)
downloadrust-83eb264273fe7ace01b2100c116daa36f06920b8.tar.gz
rust-83eb264273fe7ace01b2100c116daa36f06920b8.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions