[all-commits] [llvm/llvm-project] a490ca: [PassManager] Save compile time by not running the...

Chris Lattner via All-commits all-commits at lists.llvm.org
Mon Jun 14 11:44:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a490ca8e014acac9c2df7bd7f0aff6c7422d850a
      https://github.com/llvm/llvm-project/commit/a490ca8e014acac9c2df7bd7f0aff6c7422d850a
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2021-06-14 (Mon, 14 Jun 2021)

  Changed paths:
    M mlir/lib/Pass/Pass.cpp

  Log Message:
  -----------
  [PassManager] Save compile time by not running the verifier unnecessarily. NFC

This changes the pass manager to not rerun the verifier when a pass says it
didn't change anything or after an OpToOpPassAdaptor, since neither of those
cases need verification (and if the pass lied, then there will be much larger
semantic problems than will be caught by the verifier).

This maintains behavior in EXPENSIVE_CHECKS mode.

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




More information about the All-commits mailing list