aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Archive.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-03-02 11:25:41 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-03-02 11:25:51 +0000
commitdf0a2b4f309a2ea6a3038526722ac648d4678d47 (patch)
tree8e1cafc7ad34ebc4e32aeb397b7ad0bba4282066 /llvm/lib/Object/Archive.cpp
parent0817ce86b540f909eade6a8d7370e1b47e863a70 (diff)
downloadllvm-df0a2b4f309a2ea6a3038526722ac648d4678d47.zip
llvm-df0a2b4f309a2ea6a3038526722ac648d4678d47.tar.gz
llvm-df0a2b4f309a2ea6a3038526722ac648d4678d47.tar.bz2
[DAG] SelectionDAG::isSplatValue - add initial BITCAST handling
This patch adds support for recognising vector splats by peeking through bitcasts to vectors with smaller element types - if all the offset subelements are splats then the bitcasted vector is a splat as well. We don't have great coverage for isSplatValue so I've made this pretty specific to the use case I'm trying to fix - regressions in some vXi64 vector shift by splat cases that 32-bit x86 doesn't recognise because the shift amount buildvector has been type legalised to v2Xi32. We can add further support (floats, bitcast from larger element types, undef elements) when we have actual test coverage. Differential Revision: https://reviews.llvm.org/D120553
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions