mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
d3948116b8
commit
90d1be7eef
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user