diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-10-26 22:06:59 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-10-26 22:08:39 +1100 |
| commit | eb637d26ba4652ea65ef58288af0697c32ebc503 (patch) | |
| tree | 9e1aa216e2474f3d8f4f6d7c9993b0336b9eb2b2 /src/rustllvm/RustWrapper.cpp | |
| parent | f99911a4a0bead7dd1f9ef2f90442844434cc391 (diff) | |
| download | rust-eb637d26ba4652ea65ef58288af0697c32ebc503.tar.gz rust-eb637d26ba4652ea65ef58288af0697c32ebc503.zip | |
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
