[PATCH] D149200: [X86][WIP] Enable `foldSelectWithIdentityConstant` for scalar types.
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 21:20:24 PDT 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/test/CodeGen/X86/fold-select.ll:10-16
+; CHECK-NEXT: vpxor %xmm0, %xmm0, %xmm0
+; CHECK-NEXT: vpcmpgtw %xmm4, %xmm0, %k0 {%k1}
+; CHECK-NEXT: vpand %xmm1, %xmm2, %xmm0
+; CHECK-NEXT: vpsllw $15, %xmm0, %xmm0
+; CHECK-NEXT: vpmovw2m %xmm0, %k2
+; CHECK-NEXT: kandnb %k2, %k1, %k1
+; CHECK-NEXT: korb %k1, %k0, %k1
----------------
pengfei wrote:
> Regression? ditto below.
Yeah mostly regressions. Working on trying to clean it up.
Have a bit of promise restricting to only if both arms are constant but still many.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149200/new/
https://reviews.llvm.org/D149200
More information about the llvm-commits
mailing list