diff options
author | River Riddle <riddleriver@gmail.com> | 2020-10-28 16:46:38 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-10-28 16:58:06 -0700 |
commit | bf0440be91a6ea18fc8c1601f7ce6bcc8e6d2300 (patch) | |
tree | bddbbcb9a698ff81f59c25470a09c4fa1eeb945d /llvm/lib/Transforms/Utils/Debugify.cpp | |
parent | f6a6f27edb3991154393976e9e8f7b88542d406c (diff) | |
download | llvm-bf0440be91a6ea18fc8c1601f7ce6bcc8e6d2300.zip llvm-bf0440be91a6ea18fc8c1601f7ce6bcc8e6d2300.tar.gz llvm-bf0440be91a6ea18fc8c1601f7ce6bcc8e6d2300.tar.bz2 |
[mlir] Optimize the parsing of ElementsAttr hex strings
This revision optimizes the parsing of hex strings by using the checked variant of llvm::fromHex, and adding a specialized method to Token for extracting hex strings. This leads a large decrease in compile time when parsing large hex constants (one example: 2.6 seconds -> 370 miliseconds)
Differential Revision: https://reviews.llvm.org/D90266
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
0 files changed, 0 insertions, 0 deletions