Do not give token factor nodes outrageous weights

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-01-17 22:56:09 +00:00
parent d3948116b8
commit 90d1be7eef

View File

@ -453,8 +453,11 @@ unsigned ISel::ComputeRegPressure(SDOperand O) {
++NumExtraMaxRegUsers;
}
}
Result = MaxRegUse+NumExtraMaxRegUsers;
if (O.getOpcode() != ISD::TokenFactor)
Result = MaxRegUse+NumExtraMaxRegUsers;
else
Result = std::max(MaxRegUse-1, 1);
}
//std::cerr << " WEIGHT: " << Result << " "; N->dump(); std::cerr << "\n";