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

Michael Ilseman milseman at apple.com
Thu Oct 11 11:45:09 PDT 2012


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cacheGetIntrinsicID.patch
Type: application/octet-stream
Size: 2370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121011/25a0f41c/attachment.obj>


More information about the llvm-commits mailing list