mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
[SLPVectorizer] Split Tree/Reduction cost calls to simplify debugging. NFCI.
llvm-svn: 335110
This commit is contained in:
parent
b9e3e09564
commit
5a74ae2b63
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user