1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[Hexagon] Restore minimum profit check accidentally changed in r290024

llvm-svn: 290100
This commit is contained in:
Malcolm Parsons 2016-12-19 12:37:26 +00:00
parent 1019c2202a
commit f599205dae

View File

@ -397,7 +397,7 @@ bool HexagonSplitDoubleRegs::isProfitable(const USet &Part, LoopRegMap &IRM)
for (unsigned DR : Part) {
MachineInstr *DefI = MRI->getVRegDef(DR);
int32_t P = profit(DefI);
if (P == std::numeric_limits<int>::max())
if (P == std::numeric_limits<int>::min())
return false;
TotalP += P;
// Reduce the profitability of splitting induction registers.
@ -430,7 +430,7 @@ bool HexagonSplitDoubleRegs::isProfitable(const USet &Part, LoopRegMap &IRM)
// Splittable instruction.
SplitNum++;
int32_t P = profit(UseI);
if (P == std::numeric_limits<int>::max())
if (P == std::numeric_limits<int>::min())
return false;
TotalP += P;
}