[PATCH] D150677: [GlobalIsel][X86] Legalize G_CTPOP and G_CTLZ

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 10:38:31 PDT 2023


arsenm added a comment.

In D150677#4346982 <https://reviews.llvm.org/D150677#4346982>, @tschuett wrote:

> G_CTLZ is only legal for s16, s32, and s64. I was hoping that it will somehow legally widened to s16 ops.

Your legalize rules aren't constraining the result and source type to match though. They're expressing the constraints as though they are independently chosen


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150677



More information about the llvm-commits mailing list