[PATCH] D150790: [GlobalIsel][X86] fix legalization of G_CTLZ and GTCTPOP
Thorsten via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 17 12:21:23 PDT 2023
tschuett added a comment.
if (Subtarget.hasAVX512() && Subtarget.is64Bit()) {
// DQ, BW and VLX
} else if (Subtarget.hasAVX2() && Subtarget.is64Bit()) {
} else if (Subtarget.hasAVX() && Subtarget.is64Bit()) {
} else if (Subtarget.hasSSE41() && Subtarget.is64Bit()) {
} else if (Subtarget.hasSSE2() && Subtarget.is64Bit()) {
} else if (Subtarget.hasSSE1() && Subtarget.is64Bit()) {
} else if (Subtarget.is64Bit()) {
} else if (Subtarget.is32Bit()) {
}
Then you don't run in the existing issues of trying to legalize an operation with different features resp. bit width.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150790/new/
https://reviews.llvm.org/D150790
More information about the llvm-commits
mailing list