[all-commits] [llvm/llvm-project] 235fb6: [MemoryBuiltins] Don't query TLI for non-pointer f...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 21 02:28:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 235fb602ed99c59f2a741533906c19280d791e18
      https://github.com/llvm/llvm-project/commit/235fb602ed99c59f2a741533906c19280d791e18
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M llvm/lib/Analysis/MemoryBuiltins.cpp

  Log Message:
  -----------
  [MemoryBuiltins] Don't query TLI for non-pointer functions (NFC)

Fetching allocation data for calls is a rather hot operation, and
TLI lookups are slow. We can greatly reduce the number of calls
for which TLI is queried by checking that they return a pointer
value first, as this is a requirement for allocation functions
anyway.




More information about the All-commits mailing list