OSDN Git Service

[x86] invert logic for attribute 'FeatureFastUAMem'
authorSanjay Patel <spatel@rotateright.com>
Fri, 21 Aug 2015 20:17:26 +0000 (20:17 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 21 Aug 2015 20:17:26 +0000 (20:17 +0000)
commit2071d7abd9616227d6a1c1aacb7e44b3797d6902
treedc52729091f4102e4043209ebe646ef771d37c47
parent81e467d35217e7c331048c474f13bc91c942a911
[x86] invert logic for attribute 'FeatureFastUAMem'

This is a 'no functional change intended' patch. It removes one FIXME, but adds several more.

Motivation: the FeatureFastUAMem attribute may be too general. It is used to determine if any
sized misaligned memory access under 32-bytes is 'fast'. From the added FIXME comments, however,
you can see that we're not consistent about this. Changing the name of the attribute makes it
clearer to see the logic holes.

Changing this to a 'slow' attribute also means we don't have to add an explicit 'fast' attribute
to new chips; fast unaligned accesses have been standard for several generations of CPUs now.

Differential Revision: http://reviews.llvm.org/D12154

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245729 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86.td
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86Subtarget.cpp
lib/Target/X86/X86Subtarget.h