diff options
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
| -rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 61450a7cca7c..89e2c59fe805 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -651,7 +651,7 @@ void PBQPRegAlloc::addStackInterval(const LiveInterval *spilled,    if (stackInterval.getNumValNums() != 0)      vni = stackInterval.getValNumInfo(0);    else -    vni = stackInterval.getNextValue(-0U, 0, lss->getVNInfoAllocator()); +    vni = stackInterval.getNextValue(0, 0, false, lss->getVNInfoAllocator());    LiveInterval &rhsInterval = lis->getInterval(spilled->reg);    stackInterval.MergeRangesInAsValue(rhsInterval, vni); @@ -733,8 +733,7 @@ void PBQPRegAlloc::finalizeAlloc() const {           itr != end; ++itr) {      LiveInterval *li = *itr; -    unsigned physReg = li->preference; - +    unsigned physReg = vrm->getRegAllocPref(li->reg);      if (physReg == 0) {        const TargetRegisterClass *liRC = mri->getRegClass(li->reg);        physReg = *liRC->allocation_order_begin(*mf);  | 
