[PATCH] D111129: [AMDGPU][GlobalISel] Fix legalization of G_UMULH

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 02:42:49 PDT 2021


foad created this revision.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Scalarize before narrowing because the narrowing implementation does not
work on vectors. This matches what we do for regular G_MUL.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111129

Files:
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-umulh.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-umulo.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111129.377128.patch
Type: text/x-patch
Size: 23018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211005/d61e2678/attachment.bin>


More information about the llvm-commits mailing list