[llvm] r255909 - [ThinLTO] Metadata linking for imported functions

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 15:31:00 PST 2016


> +  if (MDValueToValIDMap.count(MD)) {
> +    unsigned Idx = MDValueToValIDMap[MD];

Hi,

There are many cases like this where we are doing more hash lookups
than needed. In this case you can use find and compare with end().

Cheers,
Rafael


More information about the llvm-commits mailing list