[PATCH] D149027: [X86] Add peephole to convert `(Cmp Op32/Op64, Imm8)` -> `(Cmp Op16/Op8, Imm8)`
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 23 12:22:22 PDT 2023
RKSimon added inline comments.
================
Comment at: llvm/test/CodeGen/X86/vector-reduce-and-cmp.ll:691
; AVX-NEXT: vmovd %xmm0, %eax
-; AVX-NEXT: cmpw $-1, %ax
+; AVX-NEXT: cmpw $65535, %ax # imm = 0xFFFF
; AVX-NEXT: sete %al
----------------
This looks suspicous?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149027/new/
https://reviews.llvm.org/D149027
More information about the llvm-commits
mailing list