[all-commits] [llvm/llvm-project] 86beba: [PredicateInfo] Cache ssa.copy declarations (NFC) ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jun 23 00:17:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86beba9301112c6092cbfa3e53bdacc0d68337df
      https://github.com/llvm/llvm-project/commit/86beba9301112c6092cbfa3e53bdacc0d68337df
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-06-23 (Mon, 23 Jun 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/PredicateInfo.h
    M llvm/lib/Transforms/Utils/PredicateInfo.cpp

  Log Message:
  -----------
  [PredicateInfo] Cache ssa.copy declarations (NFC) (#145020)

This pass creates a lot of ssa.copy intrinsics, typically for a small
set of types. Determining the function type, performing intrinsic name
mangling and looking up the declaration has noticeable overhead in this
case.

Improve this by caching the declarations by type. I've made this a
separate map from CreatedDeclarations, which only tracks the
declarations that were newly inserted (but not pre-existing ones).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list