[llvm] [AggressiveInstCombine] Improve popcount matching if the input has known zero bits (PR #142501)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 04:57:25 PDT 2025
================
@@ -191,3 +191,51 @@ define <4 x i32> @popcount32vec(<4 x i32> %0) {
%13 = lshr <4 x i32> %12, <i32 24, i32 24, i32 24, i32 24>
ret <4 x i32> %13
}
+
+define signext i32 @popcount64_zext(i32 %x) {
----------------
dtcxzyw wrote:
```suggestion
define i32 @popcount64_zext(i32 %x) {
```
https://github.com/llvm/llvm-project/pull/142501
More information about the llvm-commits
mailing list