summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-05-05 19:32:57 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-05-05 19:32:57 +0000
commit2693c0a4910c2798ac0f4b8fa092e08b630d5c46 (patch)
treec0dfdee4f40cbc0d9365fdde28250fe354962727 /clang/lib/Basic/Targets.cpp
parentc1708b2618ee455738e2d66076bc1e1734392917 (diff)
downloadbcm5719-llvm-2693c0a4910c2798ac0f4b8fa092e08b630d5c46.tar.gz
bcm5719-llvm-2693c0a4910c2798ac0f4b8fa092e08b630d5c46.zip
[LegalizeVectorTypes] Allow single loads and stores for more short vectors
When lowering a load or store for TypeWidenVector, the type legalizer would use a single load or store if the associated integer type was legal. E.g. it would load a v4i8 as an i32 if i32 was legal. This patch extends that behavior to promoted integers as well as legal ones. If the integer type for the full vector width is TypePromoteInteger, the element type is going to be TypePromoteInteger too, and it's still better to use a single promoting load or truncating store rather than N individual promoting loads or truncating stores. E.g. if you have a v2i8 on a target where i16 is promoted to i32, it's better to load the v2i8 as an i16 rather than load both i8s individually. Original patch by Richard Sandiford. llvm-svn: 236528
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud