[PATCH] D81742: AMDGPU/GlobalISel: Fix asserts on non-s32 sitofp/uitofp sources

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 08:03:24 PDT 2020


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

The combine to form cvt_f32_ubyte0 was assuming the source type was
always 32-bit, but this needs to tolerate any legal source type.


https://reviews.llvm.org/D81742

Files:
  llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-itofp.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81742.270401.patch
Type: text/x-patch
Size: 12788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200612/2a684b11/attachment.bin>


More information about the llvm-commits mailing list