[all-commits] [llvm/llvm-project] 857d69: Move BasicBlock::getTerminator definition to the h...

arpilipe via All-commits all-commits at lists.llvm.org
Tue Apr 5 13:12:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 857d699667f62b16e75a716f4b8bcb520684e740
      https://github.com/llvm/llvm-project/commit/857d699667f62b16e75a716f4b8bcb520684e740
  Author: Artur Pilipenko <apilipenko at azul.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M llvm/include/llvm/IR/BasicBlock.h
    M llvm/lib/IR/BasicBlock.cpp

  Log Message:
  -----------
  Move BasicBlock::getTerminator definition to the header

This way it can be inlined to its caller. This method
shows up in the profile and it is essentially a fancy
getter. It would benefit from inlining into its callers.

NFC.




More information about the All-commits mailing list