Move RABasic::addMBBLiveIns to the base class, it is generally useful.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Dec 2010 01:06:06 +0000 (01:06 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Dec 2010 01:06:06 +0000 (01:06 +0000)
commit1b19dc1d8b7594434ea9a157bfe2ae68eabf9f05
tree308afe1bb40b417cdf3afe11efada61850aa7405
parent255eafbd498e7d41ceef45ee0ad13bfde573ff82
Move RABasic::addMBBLiveIns to the base class, it is generally useful.

Minor optimization to the use of IntervalMap iterators. They are fairly
heavyweight, so prefer SI.valid() over SI != end().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121217 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervalUnion.h
lib/CodeGen/RegAllocBase.h
lib/CodeGen/RegAllocBasic.cpp