[llvm] r232927 - [X86] Add one stepping of Broadwell to the CPU name autodetection for march=native.

Eric Christopher echristo at gmail.com
Sun Mar 22 20:04:48 PDT 2015


Heh. Awesome. :)

-eric

On Sun, Mar 22, 2015 at 8:03 PM Craig Topper <craig.topper at gmail.com> wrote:

> I copied it from Haswell. Didn't notice it was wrong there already.
>
> On Sunday, March 22, 2015, Eric Christopher <echristo at gmail.com> wrote:
>
>>
>>  On Sun, Mar 22, 2015, 5:21 PM Craig Topper <craig.topper at gmail.com>
>> wrote:
>>
>> Author: ctopper
>> Date: Sun Mar 22 19:15:06 2015
>> New Revision: 232927
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=232927&view=rev
>> Log:
>> [X86] Add one stepping of Broadwell to the CPU name autodetection for
>> march=native.
>>
>> Modified:
>>     llvm/trunk/lib/Support/Host.cpp
>>
>> Modified: llvm/trunk/lib/Support/Host.cpp
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=232927&r1=232926&r2=232927&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/lib/Support/Host.cpp (original)
>> +++ llvm/trunk/lib/Support/Host.cpp Sun Mar 22 19:15:06 2015
>> @@ -361,6 +361,12 @@ StringRef sys::getHostCPUName() {
>>          // versions instead of the i7 versions).
>>          return HasAVX2 ? "core-avx2" : "corei7";
>>
>> +      // Broadwell:
>> +      case 61:
>> +        // Not all Broadwell processors support AVX
>>
>> too
>>
>> " AVX too"? ;)
>>
>> -eric
>>
>> (such as the Pentium
>> +        // versions instead of the i7 versions).
>> +        return HasAVX2 ? "broadwell" : "corei7";
>> +
>>        case 28: // Most 45 nm Intel Atom processors
>>        case 38: // 45 nm Atom Lincroft
>>        case 39: // 32 nm Atom Medfield
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>>
>>
>
> --
> ~Craig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150323/5033d5eb/attachment.html>


More information about the llvm-commits mailing list