diff options
author | Derek Schuff <dschuff@google.com> | 2013-05-15 23:07:43 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2013-05-15 23:07:43 +0000 |
commit | 36f00d9f02bc54777bfacfb6e5fbedb54d195fcb (patch) | |
tree | 56810a7f3ec82290e336851cdc0b2c5e3c45edb5 | |
parent | b8cd7a0d7fb24da4f9367b8474c3dfc036c2a04b (diff) | |
download | bcm5719-llvm-36f00d9f02bc54777bfacfb6e5fbedb54d195fcb.tar.gz bcm5719-llvm-36f00d9f02bc54777bfacfb6e5fbedb54d195fcb.zip |
Revert "Support unaligned load/store on more ARM targets"
This reverts r181898.
llvm-svn: 181944
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp index 9ff0d61481c..8653c462f06 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.cpp +++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp @@ -162,23 +162,10 @@ void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) { if (!isThumb() || hasThumb2()) PostRAScheduler = true; - if (!StrictAlign) { - // Assume pre-ARMv6 doesn't support unaligned accesses. - // - // ARMv6 may or may not support unaligned accesses depending on the - // SCTLR.U bit, which is architecture-specific. We assume ARMv6 - // Darwin targets support unaligned accesses, and others don't. - // - // ARMv7 always has SCTLR.U set to 1, but it has a new SCTLR.A bit - // which raises an alignment fault on unaligned accesses. Linux - // defaults this bit to 0 and handles it as a system-wide (not - // per-process) setting. It is therefore safe to assume that ARMv7+ - // targets support unaligned accesses. - // - // The above behavior is consistent with GCC. - if (hasV7Ops() || (hasV6Ops() && isTargetDarwin())) - AllowsUnalignedMem = true; - } + // v6+ may or may not support unaligned mem access depending on the system + // configuration. + if (!StrictAlign && hasV6Ops() && isTargetDarwin()) + AllowsUnalignedMem = true; // NEON f32 ops are non-IEEE 754 compliant. Darwin is ok with it by default. uint64_t Bits = getFeatureBits(); |