aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
diff options
context:
space:
mode:
authorTim Renouf <tpr.llvm@botech.co.uk>2019-07-04 17:38:24 +0000
committerTim Renouf <tpr.llvm@botech.co.uk>2019-07-04 17:38:24 +0000
commit5816889c748b37e1c3f48e8799a3478cf5931f60 (patch)
tree5c693a172c14089403cf5f3f29d1dcb821f39975 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
parent75b5edf6a1df09d466a9c4f5669121add1632067 (diff)
downloadllvm-5816889c748b37e1c3f48e8799a3478cf5931f60.zip
llvm-5816889c748b37e1c3f48e8799a3478cf5931f60.tar.gz
llvm-5816889c748b37e1c3f48e8799a3478cf5931f60.tar.bz2
[AMDGPU] Custom lower INSERT_SUBVECTOR v3, v4, v5, v8
Summary: Since the changes to introduce vec3 and vec5, INSERT_VECTOR for these sizes has been marked "expand", which made LegalizeDAG lower it to loads and stores via a stack slot. The code got optimized a bit later, but the now-unused stack slot was never deleted. This commit avoids that problem by custom lowering INSERT_SUBVECTOR into an EXTRACT_VECTOR_ELT and INSERT_VECTOR_ELT for each element in the subvector to insert. V2: Addressed review comments re test. Differential Revision: https://reviews.llvm.org/D63160 Change-Id: I9e3c13e36f68cfa3431bb9814851cc1f673274e1 llvm-svn: 365148
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions