[llvm] [VPlan] Mark histogram increment as only having its first lane used. (PR #226138)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 05:04:38 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: Florian Hahn (fhahn)

<details>
<summary>Changes</summary>

The second operand (increment ) of llvm.experimental.vector.histogram.* is a scalar. Handle it in usesFirstLaneOnly.

---
Full diff: https://github.com/llvm/llvm-project/pull/226138.diff


2 Files Affected:

- (modified) llvm/lib/Transforms/Vectorize/VPlan.h (+7) 
- (modified) llvm/test/Transforms/LoopVectorize/AArch64/sve2-histcnt.ll (+1-4) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list