[PATCH] D137635: [CodeGen] Add sources to isVectorClearMaskLegal. NFC.

Han-Kuan Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 06:18:53 PST 2022


HanKuanChen added a comment.

In D137635#3914902 <https://reviews.llvm.org/D137635#3914902>, @RKSimon wrote:

> Do you have an upstream target that actually requires this?

Well, actually I want to modify `isShuffleMaskLegal` so that RISCV target can recognize same vector_shuffle patterns if the source are from a same vector (or one of input is undef).
But in some targets (X86 and AArch64), `isVectorClearMaskLegal` will call `isShuffleMaskLegal`. If we modify `isShuffleMaskLegal` first, the implementations in `isVectorClearMaskLegal` will be very strange.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137635



More information about the llvm-commits mailing list