[PATCH] D33634: [ThinLTO] Reduce unnecessary map lookups during combined summary write

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 28 12:19:30 PDT 2017


tejohnson created this revision.
Herald added subscribers: inglorion, Prazek.

Don't assign values to undefined references, simply don't emit those
reference edges as they are not useful (we were already not emitting
call edges to undefined refs).

Also, streamline the later lookup of value ids when writing the
summaries, by combining the check for value id existence with the access
of that value id.


https://reviews.llvm.org/D33634

Files:
  lib/Bitcode/Writer/BitcodeWriter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33634.100561.patch
Type: text/x-patch
Size: 4109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170528/c1e835da/attachment.bin>


More information about the llvm-commits mailing list