Skip to content

Commit 75b8f98

Browse files
authored
[SLP] NFC. Change the comment to match the code execution. (#116022)
Make code execute like the comment will modify many tests and affect the performance. As a result, we change the comment instead of the code.
1 parent 922282e commit 75b8f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,7 @@ class BoUpSLP {
22222222
MapVector<unsigned, std::pair<unsigned, unsigned>> HashMap;
22232223
// Try to be closer to the original results, if we have multiple lanes
22242224
// with same cost. If 2 lanes have the same cost, use the one with the
2225-
// lowest index.
2225+
// highest index.
22262226
for (int I = getNumLanes(); I > 0; --I) {
22272227
unsigned Lane = I - 1;
22282228
OperandsOrderData NumFreeOpsHash =

0 commit comments

Comments
 (0)