diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-06-25 05:30:56 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-06-25 05:30:56 +0000 |
commit | 3de032a3b6a508136df3fa6519d9a29c416a1fbe (patch) | |
tree | fe5c581044d4ddf2285539b04fe322ba78e19fcb /llvm/lib/Transforms | |
parent | 8c8117240cf1136cd2310a4bc92bc4e5af2a6604 (diff) | |
download | bcm5719-llvm-3de032a3b6a508136df3fa6519d9a29c416a1fbe.tar.gz bcm5719-llvm-3de032a3b6a508136df3fa6519d9a29c416a1fbe.zip |
Fix a typo in the code that collected the costs recursively.
llvm-svn: 184827
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 6837e51c9a6..88bcd90839e 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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. |