[all-commits] [llvm/llvm-project] 468fa0: Only verify LazyCallGraph under expensive checks

aeubanks via All-commits all-commits at lists.llvm.org
Mon Feb 22 20:19:38 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 468fa037b2a15a40f17329a995d058dda6049d28
      https://github.com/llvm/llvm-project/commit/468fa037b2a15a40f17329a995d058dda6049d28
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-02-22 (Mon, 22 Feb 2021)

  Changed paths:
    M llvm/lib/Analysis/CGSCCPassManager.cpp
    M llvm/lib/Analysis/LazyCallGraph.cpp

  Log Message:
  -----------
  Only verify LazyCallGraph under expensive checks

These verify calls are causing a lot of slowdown on some files, up to 8x.
The LazyCallGraph infra has been tested a lot over the years, so I'm fairly confident that we don't always need to run the verifys.

These verifies took >90% of total time in one of the compilations I looked at.

Reviewed By: thakis

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




More information about the All-commits mailing list