[InstCombine][AMDGPU] Handle more buffer intrinsics
authorPiotr Sobczak <piotr.sobczak@amd.com>
Thu, 20 Dec 2018 10:08:18 +0000 (10:08 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Thu, 20 Dec 2018 10:08:18 +0000 (10:08 +0000)
commitdeaacc17fefe59f05f08a4af383ef27aa30f7685
treed70387ed0e6943550d1adb7cabf4ba40224fdfca
parent0e3b85a730bc3ef2bcbc22bff33678005df9bafa
[InstCombine][AMDGPU] Handle more buffer intrinsics

Summary:
Include the following intrinsics in the InsctCombine
simplification:

* amdgcn_raw_buffer_load
* amdgcn_raw_buffer_load_format
* amdgcn_struct_buffer_load
* amdgcn_struct_buffer_load_format

Change-Id: I14deceff74bcb21179baf6aa6e94bf39e7d63d5d

Reviewers: arsenm

Reviewed By: arsenm

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

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

llvm-svn: 349735
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts.ll