mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +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…
Reference in New Issue
Block a user