about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-10-29 09:47:45 +0100
committerGitHub <noreply@github.com>2018-10-29 09:47:45 +0100
commit97ff2d6ab1bea79c7ff4ae60a8ab600ce8b82c8e (patch)
tree47402e0fc7d82c9fa26bffa7a69653b4ae770543 /src/rustllvm/RustWrapper.cpp
parent4e88b7363b7858960ccfd87326ece9d00bf4d973 (diff)
parenteb637d26ba4652ea65ef58288af0697c32ebc503 (diff)
downloadrust-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