[llvm] r290100 - [Hexagon] Restore minimum profit check accidentally changed in r290024
Malcolm Parsons via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 04:37:26 PST 2016
Author: malcolm.parsons
Date: Mon Dec 19 06:37:26 2016
New Revision: 290100
URL: http://llvm.org/viewvc/llvm-project?rev=290100&view=rev
Log:
[Hexagon] Restore minimum profit check accidentally changed in r290024
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonSplitDouble.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonSplitDouble.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonSplitDouble.cpp?rev=290100&r1=290099&r2=290100&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonSplitDouble.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonSplitDouble.cpp Mon Dec 19 06:37:26 2016
@@ -397,7 +397,7 @@ bool HexagonSplitDoubleRegs::isProfitabl
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::isProfitabl
// 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;
}
More information about the llvm-commits
mailing list