[PATCH] D80681: [clang][SourceManager] cache Macro Expansions

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 26 15:39:39 PDT 2020


nickdesaulniers added inline comments.


================
Comment at: clang/lib/Basic/SourceManager.cpp:901
       // across FileID lookups.
       if (!LocalSLocEntryTable[MiddleIndex].isExpansion())
         LastFileIDLookup = Res;
----------------
nickdesaulniers wrote:
> oh, this case here should have been removed, too.
https://reviews.llvm.org/D82690

Alternatively, I could revert dffc1420451f674, and reland with this hunk? That way if a revert is necessary in the future, it's only one. Also so that before/after metrics are together and not across two separate patches.




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80681/new/

https://reviews.llvm.org/D80681





More information about the cfe-commits mailing list