mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 01:56:16 +00:00
Don't bother using max here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90d1be7eef
commit
869e0434ae
@ -457,7 +457,7 @@ unsigned ISel::ComputeRegPressure(SDOperand O) {
|
||||
if (O.getOpcode() != ISD::TokenFactor)
|
||||
Result = MaxRegUse+NumExtraMaxRegUsers;
|
||||
else
|
||||
Result = std::max(MaxRegUse-1, 1);
|
||||
Result = MaxRegUse == 1 ? 0 : MaxRegUse-1;
|
||||
}
|
||||
|
||||
//std::cerr << " WEIGHT: " << Result << " "; N->dump(); std::cerr << "\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user