[all-commits] [llvm/llvm-project] 0f3708: Mark PassBuilder::addPass() as minsize

aeubanks via All-commits all-commits at lists.llvm.org
Tue Oct 5 22:10:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f37081f989bceab5521a740ac5e92b7638b208b
      https://github.com/llvm/llvm-project/commit/0f37081f989bceab5521a740ac5e92b7638b208b
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M llvm/include/llvm/IR/PassManager.h
    M llvm/include/llvm/Support/Compiler.h
    M llvm/include/llvm/Transforms/Scalar/LoopPassManager.h

  Log Message:
  -----------
  Mark PassBuilder::addPass() as minsize

PassBuilder.cpp is the slowest LLVM file to compile (if only building X86).
This makes PassBuilder.o a little faster to compile and a little smaller
as well.

These methods are not performance critical at all but are instantiated many times.

83M -> 72M instructions according to perf stat.

Reviewed By: rnk

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




More information about the All-commits mailing list