[all-commits] [llvm/llvm-project] cdfd14: [nfc] simplify promoteIndirectCalls

Mircea Trofin via All-commits all-commits at lists.llvm.org
Wed Jul 12 14:20:29 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cdfd1475c0b8a7f01f11c3cb74b530058bd4017c
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp

  Log Message:
  [nfc] simplify promoteIndirectCalls

There's no caller to `promoteIndirectCalls` that would pass a nullptr
`ModuleAnalysisManager`, so passing it by reference does away with a
bunch of nullptr tests, and also removes the need for a "OwnedORE".

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

More information about the All-commits mailing list