[llvm] [SLP]Initial compatibility support for shl v, 1 and add v, v (PR #181168)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 8 03:34:26 PDT 2026


================
@@ -5725,8 +5804,18 @@ class slpvectorizer::BoUpSLP {
             for (const Use &U : In->operands()) {
               if (auto *I = dyn_cast<Instruction>(U.get())) {
                 auto Res = OperandsUses.try_emplace(I, 0);
-                ++Res.first->getSecond();
-                ++TotalOpCount;
+                unsigned Inc = 1;
----------------
RKSimon wrote:

Better name than the vague `Inc` ?

https://github.com/llvm/llvm-project/pull/181168


More information about the llvm-commits mailing list