diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-09-28 04:09:35 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-09-28 04:09:35 +0000 |
| commit | 60b668c67a68ae36db5a8f1676c4baa8babfa294 (patch) | |
| tree | 9d94b1f01c2c6466f8cfb98c547cbab054c1d033 /lib/Target/ARM/ARMISelLowering.cpp | |
| parent | 72b926bb743135098e1727804c3750279e63b37e (diff) | |
| download | external_llvm-60b668c67a68ae36db5a8f1676c4baa8babfa294.zip external_llvm-60b668c67a68ae36db5a8f1676c4baa8babfa294.tar.gz external_llvm-60b668c67a68ae36db5a8f1676c4baa8babfa294.tar.bz2 | |
Add a command line option "-arm-strict-align" to disallow unaligned memory
accesses for ARM targets that would otherwise allow it. Radar 8465431.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 4c1e7af..d084397 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -4807,15 +4807,7 @@ SDValue ARMTargetLowering::PerformDAGCombine(SDNode *N, } bool ARMTargetLowering::allowsUnalignedMemoryAccesses(EVT VT) const { - if (!Subtarget->hasV6Ops()) - // Pre-v6 does not support unaligned mem access. - return false; - - // v6+ may or may not support unaligned mem access depending on the system - // configuration. - // FIXME: This is pretty conservative. Should we provide cmdline option to - // control the behaviour? - if (!Subtarget->isTargetDarwin()) + if (!Subtarget->allowsUnalignedMem()) return false; switch (VT.getSimpleVT().SimpleTy) { |
