[PATCH] D103820: [X86] Prefer vpmovq2m over vpternlogd + vpcmpgtq

David Zarzycki via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 7 09:46:28 PDT 2021


davezarzycki added a comment.

Actually, wait. Something weird is going on at the mid-level. These two functions should generate the same optimized IR, right?

  typedef int V __attribute__((vector_size(64)));
  
  V lt_zero_x_y(V mask, V x, V y) { return mask <  0 ? x : y; }
  V ge_zero_y_x(V mask, V x, V y) { return mask >= 0 ? y : x; }


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103820



More information about the llvm-commits mailing list