[llvm] [X86][APX] Use TEST instruction for CLOAD/CSTORE (PR #151160)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 07:55:04 PDT 2025
================
@@ -162,7 +162,7 @@ entry:
define void @load_zext(i1 %cond, ptr %b, ptr %p) {
; CHECK-LABEL: load_zext:
; CHECK: # %bb.0: # %entry
-; CHECK-NEXT: andb $1, %dil
+; CHECK-NEXT: testb $1, %dil
----------------
KanRobert wrote:
Why it's not optimized to test by eflags-related peephole optimization?
I remember we used `and` instead of `test` to give more chance for CSE.
https://github.com/llvm/llvm-project/pull/151160
More information about the llvm-commits
mailing list