about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2017-04-22 15:05:18 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-04-22 21:02:50 +0300
commita660ad84b3c27de5c0abfb683fb178ba4e4ca87e (patch)
tree93665674d9ec3bbe6fa88502a81c6c32a0a592f0 /src/rustllvm/PassWrapper.cpp
parenta0f145ba8c96feb25ae059e0917c55ef6dae01e8 (diff)
downloadrust-a660ad84b3c27de5c0abfb683fb178ba4e4ca87e.tar.gz
rust-a660ad84b3c27de5c0abfb683fb178ba4e4ca87e.zip
bail out of selection when there are multiple surviving candidates
In some cases (e.g. <[int-var] as Add<[int-var]>>), selection can turn up
a large number of candidates. Bailing out early avoids O(n^2) performance.

This improves item-type checking time by quite a bit, resulting in ~2% of total
time-to-typeck.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions