about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-10-26 22:06:59 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2018-10-26 22:08:39 +1100
commiteb637d26ba4652ea65ef58288af0697c32ebc503 (patch)
tree9e1aa216e2474f3d8f4f6d7c9993b0336b9eb2b2 /src/rustllvm/RustWrapper.cpp
parentf99911a4a0bead7dd1f9ef2f90442844434cc391 (diff)
downloadrust-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