[PATCH] D131260: [DAG] select Cond, C, -1 --> or (sext Cond), C if Cond is MVT::i1
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 5 08:02:20 PDT 2022
pengfei added inline comments.
================
Comment at: llvm/test/CodeGen/X86/memcmp-more-load-pairs-x32.ll:163
; X86-NEXT: .LBB9_3: # %res_block
-; X86-NEXT: setae %al
-; X86-NEXT: movzbl %al, %eax
-; X86-NEXT: leal -1(%eax,%eax), %eax
+; X86-NEXT: xorl %eax, %eax
+; X86-NEXT: cmpw %si, %dx
----------------
deadalnix wrote:
> This seems to be unnecessary.
Looks like dependency breaking for sbb:
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp#L5874-L5876
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131260/new/
https://reviews.llvm.org/D131260
More information about the llvm-commits
mailing list