================
@@ -4058,10 +4058,14 @@ bool Lexer::LexTokenInternal(Token &Result, bool
TokAtPhysicalStartOfLine) {
// so it's safe to access member variables after this call returns.
bool returnedToken = LexIdentifierContinue(Result, CurPtr);
- if (returnedToken && !LexingRawMode && !Is_PragmaLexer &&
- !ParsingPreprocessorDirective && LangOpts.CPlusPlusModules &&
- Result.isModuleContextualKeyword() &&
- PP->HandleModuleContextualKeyword(Result, TokAtPhysicalStartOfLine))
+ if (LLVM_UNLIKELY(returnedToken && !LexingRawMode && !Is_PragmaLexer &&
----------------
ojhunt wrote:
Does the LLVM_UNLIKELY produce a meaningful difference in performance? Given
the condition is being changed it would be nice to break it up as the current
structure is really difficult to read. Obviously that's harder to do if the
UNLIKELY actually makes a difference.
https://github.com/llvm/llvm-project/pull/177153
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits