Files
Duncan P. N. Exon Smith b9a6adc36d Merging r247372 to 3.7 for inclusion in 3.7.1
------------------------------------------------------------------------
r247372 | dexonsmith | 2015-09-10 18:34:59 -0700 (Thu, 10 Sep 2015) | 15 lines

AsmWriter: Avoid O(N^2) processing of metadata

Fix embarrassing bugs I introduced to the `SlotTracker` in or around
r235785.  I had us iterating through every instruction in a function
(and hitting a map in the LLVMContext) for every basic block in the
function.

While there, completely avoid the call to
`SlotTracker::processFunctionMetadata()` from
`SlotTracker::processFunction()` if we've speculatively done this
already in `SlotTracker::processModule()` by checking
`ShouldInitializeAllMetadata` (this wasn't an algorithmic problem, but
it's touching the same line of code).

Fixes PR24699.
------------------------------------------------------------------------



git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@247440 91177308-0d34-0410-b5e6-96231b3b80d8
2015-09-11 18:12:20 +00:00
..
2015-07-11 10:30:36 +00:00
2015-07-10 07:15:17 +00:00
2014-06-27 18:19:56 +00:00
2015-07-10 07:15:17 +00:00
2013-01-02 09:10:48 +00:00
2015-04-17 16:11:05 +00:00
2015-07-11 10:30:36 +00:00