[llvm] [InstCombine] Add ctpop(A | B) + ctpop(A & B) -> ctpop(A) + ctpop(B) (PR #79089)
    Yingwei Zheng via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jan 22 19:59:58 PST 2024
    
    
  
================
@@ -264,6 +264,21 @@ define <2 x i32> @ctpop_add_no_common_bits_vec_use2(<2 x i32> %a, <2 x i32> %b,
   ret <2 x i32> %res
 }
 
+define i32 @ctpop_and_or_combine(i32 %a, i32 %b) {
----------------
dtcxzyw wrote:
Please add some negative tests.
https://github.com/llvm/llvm-project/pull/79089
    
    
More information about the llvm-commits
mailing list