[PATCH] D144985: [X86] Make `(shift X (xor/sub N-1, Y))` -> `(shift X, (not Y))` check for one use.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 10:31:30 PST 2023


RKSimon accepted this revision.
RKSimon added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/test/CodeGen/X86/pr61038.ll:3
 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 | FileCheck %s --check-prefix=CHECK,CHECK-X64-SKX
 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64-v4 | FileCheck %s --check-prefix=CHECK,CHECK-X64-V4
 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+bmi | FileCheck %s --check-prefix=CHECK,CHECK-X64-BMI
----------------
You might be able to get away with a common CHECK-X64-BMI2 to replace the SKX and V4 prefixes


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144985



More information about the llvm-commits mailing list