aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJuneyoung Lee <aqjune@gmail.com>2021-01-10 17:22:54 +0900
committerJuneyoung Lee <aqjune@gmail.com>2021-01-10 18:03:51 +0900
commit9f2d9364b04c4d9651b1ec8612a3968b969fe71d (patch)
treed0626b38e21651082d9edadd6318271abf443649 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentb41b743d461168300ae0121937b50e334563d307 (diff)
downloadllvm-9f2d9364b04c4d9651b1ec8612a3968b969fe71d.zip
llvm-9f2d9364b04c4d9651b1ec8612a3968b969fe71d.tar.gz
llvm-9f2d9364b04c4d9651b1ec8612a3968b969fe71d.tar.bz2
[CodeGen] Update transformations to use poison for shufflevector/insertelem's initial vector elem
This patch is a part of D93817 and makes transformations in CodeGen use poison for shufflevector/insertelem's initial vector element. The change in CodeGenPrepare.cpp is fine because the mask of shufflevector should be always zero. It doesn't touch the second element (which is poison). The change in InterleavedAccessPass.cpp is also fine becauses the mask is of the form <a, a+m, a+2m, .., a+km> where a+km is smaller than the size of the first vector operand. This is guaranteed by the caller of replaceBinOpShuffles, which is lowerInterleavedLoad. It calls isDeInterleaveMask and isDeInterleaveMaskOfFactor to check the mask is the desirable form. isDeInterleaveMask has the check that a+km is smaller than the vector size. To check my understanding, I added an assertion & added a test to show that this optimization doesn't fire in such case. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D94056
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions