From: Vikram S. Adve Date: Mon, 12 Nov 2001 23:40:22 +0000 (+0000) Subject: Do the same for allocating spills to get their alignment right too. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e85f2332dbdd7ed50635b9095d021b086d26f488;p=oota-llvm.git Do the same for allocating spills to get their alignment right too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1285 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 9133da5df49..0acdcdbc7bc 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -1036,7 +1036,8 @@ void PhyRegAlloc::allocateStackSpace4SpilledLRs() LiveRange *L = (*HMI).second; // get the LiveRange if(L) if( ! L->hasColor() ) - L->setSpillOffFromFP(mcInfo.allocateSpilledValue(TM,L->getType())); + /**** NOTE: THIS SHOULD USE THE RIGHT SIZE FOR THE REG BEING PUSHED ****/ + L->setSpillOffFromFP(mcInfo.allocateSpilledValue(TM, Type::LongTy /*L->getType()*/ )); } } // for all LR's in hash map } diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index 9133da5df49..0acdcdbc7bc 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -1036,7 +1036,8 @@ void PhyRegAlloc::allocateStackSpace4SpilledLRs() LiveRange *L = (*HMI).second; // get the LiveRange if(L) if( ! L->hasColor() ) - L->setSpillOffFromFP(mcInfo.allocateSpilledValue(TM,L->getType())); + /**** NOTE: THIS SHOULD USE THE RIGHT SIZE FOR THE REG BEING PUSHED ****/ + L->setSpillOffFromFP(mcInfo.allocateSpilledValue(TM, Type::LongTy /*L->getType()*/ )); } } // for all LR's in hash map }