diff options
author | Lang Hames <lhames@gmail.com> | 2009-09-04 20:41:11 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-09-04 20:41:11 +0000 |
commit | 8651125d2885f74546b6e2a556082111d5b75da3 (patch) | |
tree | 4d6c1e4cb918fb86cc7f2acc370171b110123cf6 /lib/CodeGen/RegAllocPBQP.cpp | |
parent | 5684229a4583355a6b20a950614731c1a6d38f88 (diff) | |
download | llvm-8651125d2885f74546b6e2a556082111d5b75da3.tar.gz llvm-8651125d2885f74546b6e2a556082111d5b75da3.tar.bz2 llvm-8651125d2885f74546b6e2a556082111d5b75da3.tar.xz |
Replaces uses of unsigned for indexes in LiveInterval and VNInfo with
a new class, MachineInstrIndex, which hides arithmetic details from
most clients. This is a step towards allowing the register allocator
to update/insert code during allocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index e85a5ac704..12da38fa21 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -683,7 +683,8 @@ void PBQPRegAlloc::addStackInterval(const LiveInterval *spilled, if (stackInterval.getNumValNums() != 0) vni = stackInterval.getValNumInfo(0); else - vni = stackInterval.getNextValue(0, 0, false, lss->getVNInfoAllocator()); + vni = stackInterval.getNextValue( + MachineInstrIndex(), 0, false, lss->getVNInfoAllocator()); LiveInterval &rhsInterval = lis->getInterval(spilled->reg); stackInterval.MergeRangesInAsValue(rhsInterval, vni); |