]> granicus.if.org Git - llvm/commit
[InstCombine][AMDGPU] Fix crash with v3i16/v3f16 buffer intrinsics
authorPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 16 Oct 2019 11:14:01 +0000 (11:14 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 16 Oct 2019 11:14:01 +0000 (11:14 +0000)
commit5f2beaf914698cb1927738d19f68534d3856fab6
treeb6c60d27ec3c8311464ac478fea965e845d2e507
parentd773329d75c13b8c52a17e28bcc1b208a8b1bccb
[InstCombine][AMDGPU] Fix crash with v3i16/v3f16 buffer intrinsics

Summary:
This is something of a workaround to avoid a crash later on in type
legalizer (WidenVectorResult()).
Also added some f16 tests, including a non-working v3f16 case with
a FIXME.

Reviewers: arsenm, tpr, nhaehnle

Reviewed By: arsenm

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68865

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374993 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts.ll