]> granicus.if.org Git - llvm/commit
[X86] Enable -mprefer-vector-width=256 by default for Skylake-avx512 and later Intel...
authorCraig Topper <craig.topper@intel.com>
Wed, 11 Sep 2019 23:54:36 +0000 (23:54 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 11 Sep 2019 23:54:36 +0000 (23:54 +0000)
commitf7b1d9ff38042d73759b3dbfc2cd00b0a3651742
treeca31eb686294c08a3f01e0bc0a9da2429d551fe4
parent6dd2a96e37772b6b8f8e88e376d9a6e155e2519b
[X86] Enable -mprefer-vector-width=256 by default for Skylake-avx512 and later Intel CPUs.

AVX512 instructions can cause a frequency drop on these CPUs. This
can negate the performance gains from using wider vectors. Enabling
prefer-vector-width=256 will prevent generation of zmm registers
unless explicit 512 bit operations are used in the original source
code.

I believe gcc and icc both do something similar to this by default.

Differential Revision: https://reviews.llvm.org/D67259

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371694 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.rst
lib/Target/X86/X86.td
test/CodeGen/X86/min-legal-vector-width.ll