diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-10-29 09:47:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-29 09:47:45 +0100 |
| commit | 97ff2d6ab1bea79c7ff4ae60a8ab600ce8b82c8e (patch) | |
| tree | 47402e0fc7d82c9fa26bffa7a69653b4ae770543 /src/rustllvm/RustWrapper.cpp | |
| parent | 4e88b7363b7858960ccfd87326ece9d00bf4d973 (diff) | |
| parent | eb637d26ba4652ea65ef58288af0697c32ebc503 (diff) | |
| download | rust-97ff2d6ab1bea79c7ff4ae60a8ab600ce8b82c8e.tar.gz rust-97ff2d6ab1bea79c7ff4ae60a8ab600ce8b82c8e.zip | |
Rollup merge of #55384 - nnethercote:better-integer_lit-float_lit, r=michaelwoerister
Avoid unnecessary allocations in `float_lit` and `integer_lit`. This commit avoids an allocation when parsing any float and integer literals that don't involved underscores. This reduces the number of allocations done for the `tuple-stress` benchmark by 10%, reducing its instruction count by just under 1%.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
