about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-22 12:41:30 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-26 20:00:54 -0700
commitbb6c249f99c736b6986232c0c2eeec1d058585af (patch)
treebe6b00f15cc5dd724ca7c3f9b099223ababde3e2 /compiler/rustc_llvm/llvm-wrapper
parent1ec980d225fff2346a1a631a7ffc88b37e9e18af (diff)
downloadrust-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