[llvm] [LV] Autovectorization for the all-in-one histogram intrinsic (PR #91458)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 05:34:31 PDT 2024


================
@@ -1966,6 +1987,15 @@ getDependenceDistanceStrideAndSize(
       BPtr->getType()->getPointerAddressSpace())
     return MemoryDepChecker::Dependence::Unknown;
 
+  // Ignore Histogram count updates as they are handled by the Intrinsic. This
+  // happens when the same pointer is first used to read from and then is used
+  // to write to.
+  if (!AIsWrite && BIsWrite && APtr == BPtr && HistogramPtrs.contains(APtr)) {
+    LLVM_DEBUG(dbgs() << "LAA: Histogram: Update is safely ignored. Pointer: "
----------------
paschalis-mpeis wrote:

Given that this function runs on each store of a loop, will we eventually reduce the amount of debug output we print?

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


More information about the llvm-commits mailing list