[llvm-commits] [PATCH] Cache the result of getIntrinsicID

Duncan Sands baldrick at free.fr
Thu Oct 11 11:51:52 PDT 2012


Hi Michael,

On 11/10/12 20:45, Michael Ilseman wrote:
> Attached is a patch to cache the results of getIntrinsicID(). getIntrinsicID() can be expensive in the presence of overloadable intrinsics, since Intrinsics.gen's GET_FUNCTION_RECOGNIZER does string prefix matching for every possible overloadable intrinsic beginning with the same letter first.

while I've nothing against caching, maybe the search method should be
improved too?  Probably it dates from an epoch where there just weren't
that many intrinsics...

Ciao, Duncan.




More information about the llvm-commits mailing list