aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-04-24 16:16:01 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-04-24 16:16:01 +0000
commita6578f70560f9fa421494728622e5ab68eba9883 (patch)
treef344f14a6d2b28d81f6e571ef65a761553b85d8b /llvm/lib/Object/MachOObjectFile.cpp
parent23a0589bce84c2b0673e30c024c6c77c7d2357a4 (diff)
downloadllvm-a6578f70560f9fa421494728622e5ab68eba9883.zip
llvm-a6578f70560f9fa421494728622e5ab68eba9883.tar.gz
llvm-a6578f70560f9fa421494728622e5ab68eba9883.tar.bz2
LoopVectorize: Scalarize padded types
This patch disables memory-instruction vectorization for types that need padding bytes, e.g., x86_fp80 has 10 bytes store size with 6 bytes padding in darwin on x86_64. Because the load/store vectorization is performed by the bit casting to a packed vector, which has incompatible memory layout due to the lack of padding bytes, the present vectorizer produces inconsistent result for memory instructions of those types. This patch checks an equality of the AllocSize of a scalar type and allocated size for each vector element, to ensure that there is no padding bytes and the array can be read/written using vector operations. Patch by Daisuke Takahashi! Fixes PR15758. llvm-svn: 180196
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions