Make '-mtune=x86_64' assume fast unaligned memory accesses.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 10 Dec 2012 18:22:42 +0000 (18:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 10 Dec 2012 18:22:42 +0000 (18:22 +0000)
commitb859d528f3944c107f94f1bcf38fda69ac471e17
tree0bace00f04208bb3e0b31fda46c9a0b162a7752c
parent2c0575f2f4ce9a2db1472ee9d17aff1b0b658960
Make '-mtune=x86_64' assume fast unaligned memory accesses.

Summary:
Not all chips targeted by x86_64 have this feature, but a dramatically
increasing number do. Specifying a chip-specific tuning parameter will
continue to turn the feature on or off as appropriate for that
particular chip, but the generic flag should try to achieve the best
performance on the most widely available hardware. Today, the number of
chips with fast UA access dwarfs those without in the x86-64 space.

Note that this also brings LLVM's code generation for this '-march' flag
more in line with that of modern GCCs.

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D195

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169740 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86.td