[X86] Add 'FeatureSlowSHLD' to cpu 'bdver3'. Also explicit set FeatureAVX and Feature...
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 4 Nov 2014 21:18:09 +0000 (21:18 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 4 Nov 2014 21:18:09 +0000 (21:18 +0000)
commitc270e8abbee0959617f9a0ef94bfd4481b7de4d0
tree612c37a90b96e77f0849bfc869f65b591a2f5c78
parentd2d9ad0d6694f5559c98ccb01b5b6cd2e149ddb9
[X86] Add 'FeatureSlowSHLD' to cpu 'bdver3'. Also explicit set FeatureAVX and FeatureSSE4A for all the bdver* cpus.

This patch adds 'FeatureSlowSHLD' to 'bdver3'.
According to the official AMD optimization guide for amdfam15: "Using
alternative code in place of SHLD achieves lower overall latency and
requires fewer execution resources. The 32-bit and 64-bit forms of
ADD, ADC, SHR, and LEA (except 16-bit form) are DirectPath
instructions, while SHLD is a VectorPath instruction."

This patch also explicitly sets feature AVX and SSE4A for all the bdver*
cpus. This part of the patch is a non-functional change and it is mainly
done for clarity reasons (Both XOP and FMA4 already imply AVX and SSE4A).

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