diff options
author | JF Bastien <jfb@chromium.org> | 2013-05-29 16:45:58 -0700 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2013-05-29 16:45:58 -0700 |
commit | ca7083ab8390a6b126d4fc6cd0c4a2a5e45e0f74 (patch) | |
tree | 4bde7d1ffe885713f15a0594f656f9dfc219a2f3 /lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 90346495718550e80e0bc671ade46cdd3a7ebc1e (diff) |
Apply LLVM upstream: r182175 - Support unaligned load/store on more ARM targets
This patch matches GCC behavior: the code used to only allow unaligned
load/store on ARM for v6+ Darwin, it will now allow unaligned load/store
for v6+ Darwin as well as for v7+ on Linux and NaCl.
The distinction is made because v6 doesn't guarantee support (but LLVM
assumes that Apple controls hardware+kernel and therefore have
conformant v6 CPUs), whereas v7 does provide this guarantee (and
Linux/NaCl behave sanely).
The patch keeps the -arm-strict-align command line option, and adds
-arm-no-strict-align. They behave similarly to GCC's -mstrict-align and
-mnostrict-align.
I originally encountered this discrepancy in FastIsel tests which expect
unaligned load/store generation. Overall this should slightly improve
performance in most cases because of reduced I$ pressure.
R=dschuff@chromium.org
Review URL: https://codereview.chromium.org/15677005
Diffstat (limited to 'lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions