[PATCH] D83389: [MIR] Speedup parsing (up to 1000x+)
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 08:50:29 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa07498425099: [MIR] Speedup parsing of function with large number of basic blocks (authored by evgeny777).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83389/new/
https://reviews.llvm.org/D83389
Files:
llvm/lib/CodeGen/MIRParser/MIParser.cpp
Index: llvm/lib/CodeGen/MIRParser/MIParser.cpp
===================================================================
--- llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -563,7 +563,7 @@
void MIParser::lex(unsigned SkipChar) {
CurrentSource = lexMIToken(
- CurrentSource.data() + SkipChar, Token,
+ CurrentSource.slice(SkipChar, StringRef::npos), Token,
[this](StringRef::iterator Loc, const Twine &Msg) { error(Loc, Msg); });
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83389.276453.patch
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200708/5deb9c76/attachment.bin>
More information about the llvm-commits
mailing list