diff options
author | Hal Finkel <hfinkel@anl.gov> | 2014-03-26 19:39:09 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2014-03-26 19:39:09 +0000 |
commit | 6da017873777cbe06bf2d5606e408c7cda85062e (patch) | |
tree | a690681368c69e9e75761b1f2aee0c1ded6ade0a /lib/Target/PowerPC/PPCTargetTransformInfo.cpp | |
parent | 9efa4ff901481dc298933b3316372079c726ad7a (diff) | |
download | llvm-6da017873777cbe06bf2d5606e408c7cda85062e.tar.gz llvm-6da017873777cbe06bf2d5606e408c7cda85062e.tar.bz2 llvm-6da017873777cbe06bf2d5606e408c7cda85062e.tar.xz |
[PowerPC] VSX loads and stores support unaligned access
I've not yet updated PPCTTI because I'm not sure what the actual relative cost
is compared to the aligned uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetTransformInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetTransformInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp index 2491a9e539..a915b04fa5 100644 --- a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp +++ b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp @@ -244,6 +244,8 @@ unsigned PPCTTI::getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, // Each load/store unit costs 1. unsigned Cost = LT.first * 1; + // FIXME: Update this for VSX loads/stores that support unaligned access. + // PPC in general does not support unaligned loads and stores. They'll need // to be decomposed based on the alignment factor. unsigned SrcBytes = LT.second.getStoreSize(); |