mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
Fix a typo in the code that collected the costs recursively.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd5af27a74
commit
58bf5ea452
@ -727,7 +727,7 @@ int FuncSLP::getTreeCost_rec(ArrayRef<Value *> VL, unsigned Depth) {
|
||||
int Cost = getTreeCost_rec(Operands, Depth + 1);
|
||||
if (Cost == MAX_COST)
|
||||
return MAX_COST;
|
||||
TotalCost += TotalCost;
|
||||
TotalCost += Cost;
|
||||
}
|
||||
|
||||
// Calculate the cost of this instruction.
|
||||
|
Loading…
Reference in New Issue
Block a user