[llvm] 22508ac - [X86] pr61923.ll - update IR to match middleend (#213908)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 04:55:28 PDT 2026


Author: Simon Pilgrim
Date: 2026-08-04T11:55:23Z
New Revision: 22508ac951966c321977cc2d51ab353b9e0ab453

URL: https://github.com/llvm/llvm-project/commit/22508ac951966c321977cc2d51ab353b9e0ab453
DIFF: https://github.com/llvm/llvm-project/commit/22508ac951966c321977cc2d51ab353b9e0ab453.diff

LOG: [X86] pr61923.ll - update IR to match middleend (#213908)

InstCombine converts vXi1 logic reductions to bitcasted scalar integer
ops - we should be testing that, not llvm.vector.reduce.and.v32i1 calls

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/pr61923.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/pr61923.ll b/llvm/test/CodeGen/X86/pr61923.ll
index f9290b9743f47..68d9bc7b3efef 100644
--- a/llvm/test/CodeGen/X86/pr61923.ll
+++ b/llvm/test/CodeGen/X86/pr61923.ll
@@ -47,7 +47,8 @@ memcmp.loop:                                      ; preds = %memcmp.loop.latch,
   %left.vector = load <32 x i8>, ptr %left.vector_start_ptr, align 1
   %right.vector = load <32 x i8>, ptr %right.vector_start_ptr, align 1
   %vec.cmp = icmp eq <32 x i8> %left.vector, %right.vector
-  %vec.cmp.reduced = call i1 @llvm.vector.reduce.and.v32i1(<32 x i1> %vec.cmp)
+  %vec.cmp.bitcast = bitcast <32 x i1> %vec.cmp to i32
+  %vec.cmp.reduced = icmp eq i32 %vec.cmp.bitcast, -1
   br i1 %vec.cmp.reduced, label %memcmp.loop.latch, label %done
 
 memcmp.loop.latch:                                ; preds = %memcmp.loop


        


More information about the llvm-commits mailing list