diff options
author | Sam McCall <sam.mccall@gmail.com> | 2022-06-23 20:06:04 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2022-06-23 20:10:20 +0200 |
commit | 466eae6aa3574aea6604d42666f099025718ffa4 (patch) | |
tree | dfed5c382860880b88f459727f6529a3b2861ae2 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | c078e464a09fa5a6df1d5b94fc862d2f9bf6b8bd (diff) | |
download | llvm-466eae6aa3574aea6604d42666f099025718ffa4.zip llvm-466eae6aa3574aea6604d42666f099025718ffa4.tar.gz llvm-466eae6aa3574aea6604d42666f099025718ffa4.tar.bz2 |
[pseudo] Store last node popped in the queue, not its parent(s). NFC
We have to walk up to the last node to find the start token, but no need
to go even one node further.
This is one node fewer to store, but more importantly if the last node
happens to have multiple parents we avoid storing the sequence multiple times.
This saves ~5% on glrParse.
Based on a comment by hokein@ on https://reviews.llvm.org/D128307
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions