summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2015-09-29 08:19:11 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2015-09-29 08:19:11 +0000
commit43f5e0848ece8c39752516019588124aa3f895a1 (patch)
treeb197f8f148ea4a9825a10449f929637c5bee6c41 /clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
parent868e1c08d9d396c68ce2a1fcf8153bf1601a5c64 (diff)
downloadbcm5719-llvm-43f5e0848ece8c39752516019588124aa3f895a1.tar.gz
bcm5719-llvm-43f5e0848ece8c39752516019588124aa3f895a1.zip
[InstCombine] Improve Vector Demanded Bits Through Bitcasts
Currently SimplifyDemandedVectorElts can only peek through bitcasts if the vectors have the same number of elements. This patch fixes and enables some existing (disabled) code to support bitcasting to vectors with more/fewer elements. It currently only accepts cases when vectors alias cleanly (i.e. number of elements are an exact multiple of the other vector). This was added to improve the demanded vector elements support for SSE vector shifts which require the __m128i (<2 x i64>) argument type to be bitcast to the vector type for the builtin shift. I've added extra tests for various additional bitcasts. Differential Revision: http://reviews.llvm.org/D12935 llvm-svn: 248784
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud