OSDN Git Service

Use binary search for intrinsic ID lookups
authorReid Kleckner <rnk@google.com>
Tue, 26 Jan 2016 02:06:41 +0000 (02:06 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 26 Jan 2016 02:06:41 +0000 (02:06 +0000)
commit8a1bace95abe4d04c275976e25d0a9db3bac7d4d
treee3baef0ac01b486c1e98e22c4e8823e77278752e
parent632580f369b4abbda80ed248cfe4086cfea3ecc5
Use binary search for intrinsic ID lookups

This improves compile time of Function.cpp from 57s to 37s for me
locally.  Intrinsic IDs are cached on the Function object, so this
shouldn't regress performance.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Function.cpp