aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorLuke Cheeseman <luke.cheeseman@arm.com>2015-07-24 09:57:05 +0000
committerLuke Cheeseman <luke.cheeseman@arm.com>2015-07-24 09:57:05 +0000
commit4d45ff2b87010a78671cd9eb4903ad945ebdb7ea (patch)
tree94cd41f5a7740c6aa22f7be123e686de0d1e1765 /clang/lib/CodeGen/ModuleBuilder.cpp
parentf8b5874b6383bfb06f4258bc906713c2d507c3d5 (diff)
downloadllvm-4d45ff2b87010a78671cd9eb4903ad945ebdb7ea.zip
llvm-4d45ff2b87010a78671cd9eb4903ad945ebdb7ea.tar.gz
llvm-4d45ff2b87010a78671cd9eb4903ad945ebdb7ea.tar.bz2
[ARM] - Fix lowering of shufflevectors in AArch32
Some shufflevectors are currently being incorrectly lowered in the AArch32 backend as the existing checks for detecting the NEON operations from the shufflevector instruction expects the shuffle mask and the vector operands to be of the same length. This is not always the case as the mask may be twice as long as the operand; here only the lower half of the shufflemask gets checked, so provided the lower half of the shufflemask looks like a vector transpose (or even is just all -1 for undef) then the intrinsics may get incorrectly lowered into a vector transpose (VTRN) instruction. This patch fixes this by accommodating for both cases and adds regression tests. Differential Revision: http://reviews.llvm.org/D11407 llvm-svn: 243103
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions