diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-25 02:39:35 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-25 02:39:35 +0000 |
commit | 73e44d8ae4c227af92b8f96f447e4a7ed38f6de5 (patch) | |
tree | da4253c523cb6ff88b16f8033077a27c85912dea /lib/Target/R600/SIISelLowering.h | |
parent | d67d029b6d2d9cc4274ffea5cc5c4bd120fe3425 (diff) | |
download | external_llvm-73e44d8ae4c227af92b8f96f447e4a7ed38f6de5.zip external_llvm-73e44d8ae4c227af92b8f96f447e4a7ed38f6de5.tar.gz external_llvm-73e44d8ae4c227af92b8f96f447e4a7ed38f6de5.tar.bz2 |
R600/SI: Report unaligned memory accesses as legal for > 32-bit types
In reality, some unaligned memory accesses are legal for 32-bit types and
smaller too, but it all depends on the address space. Allowing
unaligned loads/stores for > 32-bit types is mainly to prevent the
legalizer from splitting one load into multiple loads of smaller types.
https://bugs.freedesktop.org/show_bug.cgi?id=65873
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/SIISelLowering.h')
-rw-r--r-- | lib/Target/R600/SIISelLowering.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/R600/SIISelLowering.h b/lib/Target/R600/SIISelLowering.h index 78ae6a1..0a856d5 100644 --- a/lib/Target/R600/SIISelLowering.h +++ b/lib/Target/R600/SIISelLowering.h @@ -40,6 +40,7 @@ class SITargetLowering : public AMDGPUTargetLowering { public: SITargetLowering(TargetMachine &tm); + bool allowsUnalignedMemoryAccesses(EVT VT, bool *IsFast) const; SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg, |