[llvm] [LV] Don't treat the pointer operand of histograms as scalar uses (PR #215769)

Graham Hunter via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 06:38:35 PDT 2026


================
@@ -2239,7 +2239,8 @@ void LoopVectorizationCostModel::collectLoopScalars(ElementCount VF) {
         return WideningDecision == CM_Scalarize;
     assert(Ptr == getLoadStorePointerOperand(MemAccess) &&
            "Ptr is neither a value or pointer operand");
-    return WideningDecision != CM_GatherScatter;
+    return WideningDecision != CM_GatherScatter &&
----------------
huntergr-arm wrote:

What was the widening decision? It seems a little odd to have it be something other than gather/scatter for a histogram.

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


More information about the llvm-commits mailing list