[all-commits] [llvm/llvm-project] 2c31aa: Speed up deferred diagnostic emitter

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Mon Apr 6 10:08:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c31aa2de13a23a00ced87123b92e905f2929c7b
      https://github.com/llvm/llvm-project/commit/2c31aa2de13a23a00ced87123b92e905f2929c7b
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-04-06 (Mon, 06 Apr 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/Sema.cpp
    A clang/test/CodeGenCUDA/deferred-diag.cu
    A clang/test/SemaCUDA/deferred-diags-limit.cu
    A clang/test/SemaCUDA/deferred-diags.cu

  Log Message:
  -----------
  Speed up deferred diagnostic emitter

Move function emitDeferredDiags from Sema to DeferredDiagsEmitter since it
is only used by DeferredDiagsEmitter.

Also skip visited functions to avoid exponential compile time.

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




More information about the All-commits mailing list