AMDGPU/GlobalISel: Legalize 64-bit G_UDIV/G_UREM
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 26 Feb 2020 15:17:07 +0000 (10:17 -0500)
committerMatt Arsenault <arsenm2@gmail.com>
Mon, 30 Mar 2020 14:57:37 +0000 (10:57 -0400)
commit90a36bbd7c2cfae76ffe9a914bed32c45715f349
tree47d8b2e8c424aba91788edd96314a559925f33b9
parentf6b2c003f360c3d0dcfe13d751805643f229f79b
AMDGPU/GlobalISel: Legalize 64-bit G_UDIV/G_UREM

Mostly ported from the DAG version. This results in much worse code
than the DAG version, largely due to a much worse expansion for
G_UMULH.
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-udiv.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-urem.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i64.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll [new file with mode: 0644]