diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-17 18:05:57 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-19 06:36:06 +1000 |
| commit | 3b85597d22dc9dc9226445a95e275b8130880e63 (patch) | |
| tree | bf90bdcf1fa96838e44f84dcfd2b818111263bdd /src/libsyntax/parse/parser/expr.rs | |
| parent | 82e5c6ee6597e7d8926b4f2fea89d02d77f978d4 (diff) | |
| download | rust-3b85597d22dc9dc9226445a95e275b8130880e63.tar.gz rust-3b85597d22dc9dc9226445a95e275b8130880e63.zip | |
Add a specialized version of `shallow_resolve()`.
The super-hot call site of `inlined_shallow_resolve()` basically does `r.inlined_shallow_resolve(ty) != ty`. This commit introduces a version of that function specialized for that particular call pattern, `shallow_resolve_changed()`. Incredibly, this reduces the instruction count for `keccak` by 5%. The commit also renames `inlined_shallow_resolve()` as `shallow_resolve()` and removes the `inline(always)` annotation, as it's no longer nearly so hot.
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
