commit | e9eedd7fa6f4f861afbc7a2862f3f5504e6d340f | [log] [tgz] |
---|---|---|
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | Tue Nov 13 21:18:21 2018 +0000 |
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | Tue Nov 13 21:18:21 2018 +0000 |
tree | 26df21bfcd385790d147cfd734796109a4a64d4a | |
parent | 39400df2071bbbeebf0b7f457f7a6de26e93d326 [diff] |
[AMDGPU] combine extractelement into several selects An extractelement with non-constant index will be lowered either to scratch or movrel loop in most cases. This patch converts such instruction into a set of selects if vector size is not too big. Differential Revision: https://reviews.llvm.org/D54351 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346800 91177308-0d34-0410-b5e6-96231b3b80d8