mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 13:42:24 +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…
x
Reference in New Issue
Block a user