[all-commits] [llvm/llvm-project] 0768b0: Avoid redundant work when computing vtable vcall v...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Tue Nov 24 12:06:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0768b0576a938b6a4832884384fcb02cd2f74e09
      https://github.com/llvm/llvm-project/commit/0768b0576a938b6a4832884384fcb02cd2f74e09
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2020-11-24 (Tue, 24 Nov 2020)

  Changed paths:
    M clang/lib/CodeGen/CGVTables.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp

  Log Message:
  -----------
  Avoid redundant work when computing vtable vcall visibility

Add a Visited set to avoid repeatedly processing the same base classes
in complex class hierarchies. This cut down the compile time of one
source file from >12min to ~1min.

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




More information about the All-commits mailing list