diff options
author | River Riddle <riddleriver@gmail.com> | 2020-10-28 16:46:31 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-10-28 16:58:06 -0700 |
commit | f6a6f27edb3991154393976e9e8f7b88542d406c (patch) | |
tree | 054daecfca972df9065b3f866d08fcf59a34db72 /llvm/lib/Transforms/Utils/Debugify.cpp | |
parent | 1095419b10ff222c3cc362be27d97ff561a2181b (diff) | |
download | llvm-f6a6f27edb3991154393976e9e8f7b88542d406c.zip llvm-f6a6f27edb3991154393976e9e8f7b88542d406c.tar.gz llvm-f6a6f27edb3991154393976e9e8f7b88542d406c.tar.bz2 |
[llvm][StringExtras] Use a lookup table for `hexDigitValue`
This method is at the core of the conversion from hex to binary, and using a lookup table great improves the compile time of hex conversions.
Context: In MLIR we use hex strings to represent very large constants in the textual format of the IR. These changes lead to a large decrease in compile time when parsing these constants (>1 second -> 350 miliseconds).
Differential Revision: https://reviews.llvm.org/D90320
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
0 files changed, 0 insertions, 0 deletions