aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-09-22 00:32:15 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-09-22 00:32:15 +0000
commit12bbf7d922bb5485ef1a4af870d0c4516e5d3281 (patch)
tree33ad20764eee7cd617a0d0a3c5c9140e550d5f8a /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
parentf73fe3a04e940c53f45c09ddc5dc4f0f3ef1e4a7 (diff)
downloadllvm-12bbf7d922bb5485ef1a4af870d0c4516e5d3281.zip
llvm-12bbf7d922bb5485ef1a4af870d0c4516e5d3281.tar.gz
llvm-12bbf7d922bb5485ef1a4af870d0c4516e5d3281.tar.bz2
[x86] Back out a bad choice about lowering v4i64 and pave the way for
a more sane approach to AVX2 support. Fundamentally, there is no useful way to lower integer vectors in AVX. None. We always end up with a VINSERTF128 in the end, so we might as well eagerly switch to the floating point domain and do everything there. This cleans up lots of weird and unlikely to be correct differences between integer and floating point shuffles when we only have AVX1. The other nice consequence is that by doing things this way we will make it much easier to write the integer lowering routines as we won't need to duplicate the logic to check for AVX vs. AVX2 in each one -- if we actually try to lower a 256-bit vector as an integer vector, we have AVX2 and can rely on it. I think this will make the code much simpler and more comprehensible. Currently, I've disabled *all* support for AVX2 so that we always fall back to AVX. This keeps everything working rather than asserting. That will go away with the subsequent series of patches that provide a baseline AVX2 implementation. Please note, I'm going to implement AVX2 *without access to hardware*. That means I cannot correctness test this path. I will be relying on those with access to AVX2 hardware to do correctness testing and fix bugs here, but as a courtesy I'm trying to sketch out the framework for the new-style vector shuffle lowering in the context of the AVX2 ISA. llvm-svn: 218228
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp')
0 files changed, 0 insertions, 0 deletions