aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-06-21 11:16:07 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-06-21 11:16:07 +0100
commitfb9f9dc318d62788885a122aaee9dcd4272e87b1 (patch)
tree0b0961302ed707f6b8edbb529227e76a025e85f2 /clang/lib/Frontend/CompilerInvocation.cpp
parent10b0539772d582f3cb2370049d759083e9107599 (diff)
downloadllvm-fb9f9dc318d62788885a122aaee9dcd4272e87b1.zip
llvm-fb9f9dc318d62788885a122aaee9dcd4272e87b1.tar.gz
llvm-fb9f9dc318d62788885a122aaee9dcd4272e87b1.tar.bz2
[X86][SSE] Add SimplifyDemandedVectorEltsForTargetShuffle to handle target shuffle variable masks
Pulled out from the ongoing work on D66004, currently we don't do a good job of simplifying variable shuffle masks that have already lowered to constant pool entries. This patch adds SimplifyDemandedVectorEltsForTargetShuffle (a custom x86 helper) to first try SimplifyDemandedVectorElts (which we already do) and then constant pool simplification to help mark undefined elements. To prevent lowering/combines infinite loops, we only handle basic constant pool loads instead of creating new BUILD_VECTOR nodes for lowering - e.g. we don't try to convert them to broadcast/vzext_load - there might be some benefit to this but if so I'd rather we come up with some way to reuse existing code than reimplement a lot of BUILD_VECTOR code. Differential Revision: https://reviews.llvm.org/D81791
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions