diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-22 12:41:30 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-26 20:00:54 -0700 |
| commit | bb6c249f99c736b6986232c0c2eeec1d058585af (patch) | |
| tree | be6b00f15cc5dd724ca7c3f9b099223ababde3e2 /compiler/rustc_llvm/llvm-wrapper | |
| parent | 1ec980d225fff2346a1a631a7ffc88b37e9e18af (diff) | |
| download | rust-bb6c249f99c736b6986232c0c2eeec1d058585af.tar.gz rust-bb6c249f99c736b6986232c0c2eeec1d058585af.zip | |
Speed up `IntRange::from_pat`
Previously, this method called the more general `pat_constructor` function, which can return other pattern variants besides `IntRange`. Then it throws away any non-`IntRange` variants. Specialize it so work is only done when it could result in an `IntRange`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
