[PATCH] D68457: [X86] Enable AVX512BW and AVX512VL for memcmp

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 12:23:01 PDT 2019


craig.topper added a comment.

I'm fine with the 512-bit change to use byte compare with AVX512BW.

For 128/256, I wonder about the PTEST suggestion in the FIXME above this code. Unfortunately PTEST has 3 cycle latency on recent Intel CPUs. But it would avoid the GPR use entirely.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68457/new/

https://reviews.llvm.org/D68457





More information about the llvm-commits mailing list