[all-commits] [llvm/llvm-project] f7e19a: [Lex] Keep track of skipped preprocessor blocks an...

Argyrios Kyrtzidis via All-commits all-commits at lists.llvm.org
Mon Jun 13 21:47:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7e19a59284208712314a2d0702b48c445909130
      https://github.com/llvm/llvm-project/commit/f7e19a59284208712314a2d0702b48c445909130
  Author: Argyrios Kyrtzidis <kyrtzidis at apple.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M clang/include/clang/Lex/Preprocessor.h
    M clang/lib/Lex/PPDirectives.cpp

  Log Message:
  -----------
  [Lex] Keep track of skipped preprocessor blocks and advance the lexer directly if they are revisited

This speeds up preprocessing, specifically for preprocessing the clang sources time is reduced by about -36%,
using measurements on M1Pro with a release+thinLTO build.

Differential Revision: https://reviews.llvm.org/D127379




More information about the All-commits mailing list