Files
clang-p2996/llvm/lib/Transforms/Utils/PredicateInfo.cpp
Nikita Popov 86beba9301 [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).
2025-06-23 09:16:45 +02:00

32 KiB