Avoid iterating with LiveIntervals::iterator.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 20 Jun 2012 21:25:05 +0000 (21:25 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 20 Jun 2012 21:25:05 +0000 (21:25 +0000)
commitd67582e2767df96610ba8dc1835ad4bf99fc77e8
tree911171ff0a2751f884d02c9fb2e4a806552e29ed
parent02a227af91889d39f5e811e2e27ecce8144499eb
Avoid iterating with LiveIntervals::iterator.

That is a DenseMap iterator keyed by pointers, so the iteration order is
nondeterministic.

I would like to replace the DenseMap with an IndexedMap which doesn't
allow iteration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158856 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CalcSpillWeights.cpp
lib/CodeGen/RegAllocBase.cpp
lib/CodeGen/RegAllocPBQP.cpp