[llvm] [SLP] Make code execute like the comment. (PR #116022)
Han-Kuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 22:26:42 PST 2024
https://github.com/HanKuanChen updated https://github.com/llvm/llvm-project/pull/116022
>From 2c0c576afe68ee68cdc34ffe58160a75edc5251c Mon Sep 17 00:00:00 2001
From: Han-Kuan Chen <hankuan.chen at sifive.com>
Date: Wed, 13 Nov 2024 22:25:12 -0800
Subject: [PATCH] [SLP] NFC. Change the comment to match the code execution.
---
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index da8e0d8cc09a8b..d3b17201b87063 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2222,7 +2222,7 @@ class BoUpSLP {
MapVector<unsigned, std::pair<unsigned, unsigned>> HashMap;
// Try to be closer to the original results, if we have multiple lanes
// with same cost. If 2 lanes have the same cost, use the one with the
- // lowest index.
+ // highest index.
for (int I = getNumLanes(); I > 0; --I) {
unsigned Lane = I - 1;
OperandsOrderData NumFreeOpsHash =
More information about the llvm-commits
mailing list