1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[SLPVectorizer] Split Tree/Reduction cost calls to simplify debugging. NFCI.

llvm-svn: 335110
This commit is contained in:
Simon Pilgrim 2018-06-20 09:39:01 +00:00
parent b9e3e09564
commit 5a74ae2b63

View File

@ -5691,8 +5691,9 @@ public:
V.computeMinimumValueSizes();
// Estimate cost.
int Cost =
V.getTreeCost() + getReductionCost(TTI, ReducedVals[i], ReduxWidth);
int TreeCost = V.getTreeCost();
int ReductionCost = getReductionCost(TTI, ReducedVals[i], ReduxWidth);
int Cost = TreeCost + ReductionCost;
if (Cost >= -SLPCostThreshold) {
V.getORE()->emit([&]() {
return OptimizationRemarkMissed(