diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-11 23:19:08 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-11 23:19:08 +0000 |
commit | 9384111e90cb840e7eb867098f19910cf4c4a11d (patch) | |
tree | 9a2647e970fb0c17a2629d9074dd7094df8ff19d /lib/CodeGen/RegAllocGreedy.cpp | |
parent | 337a269dece7f14ef0a39f980d5ee45ae3034a8f (diff) | |
download | llvm-9384111e90cb840e7eb867098f19910cf4c4a11d.tar.gz llvm-9384111e90cb840e7eb867098f19910cf4c4a11d.tar.bz2 llvm-9384111e90cb840e7eb867098f19910cf4c4a11d.tar.xz |
Make data structures private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 366c94e2f4..f6e90abbe6 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -1288,7 +1288,7 @@ void RAGreedy::calcGapWeights(unsigned PhysReg, // surrounding the instruction. The exception is interference before // StartIdx and after StopIdx. // - LiveIntervalUnion::SegmentIter IntI = PhysReg2LiveUnion[*AI].find(StartIdx); + LiveIntervalUnion::SegmentIter IntI = getLiveUnion(*AI).find(StartIdx); for (unsigned Gap = 0; IntI.valid() && IntI.start() < StopIdx; ++IntI) { // Skip the gaps before IntI. while (Uses[Gap+1].getBoundaryIndex() < IntI.start()) @@ -1624,7 +1624,7 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) { ExtraRegInfo.clear(); ExtraRegInfo.resize(MRI->getNumVirtRegs()); NextCascade = 1; - IntfCache.init(MF, &PhysReg2LiveUnion[0], Indexes, TRI); + IntfCache.init(MF, &getLiveUnion(0), Indexes, TRI); GlobalCand.resize(32); // This will grow as needed. allocatePhysRegs(); |