[PATCH] D69786: [X86] Add support for -mvzeroupper and -mno-vzeroupper to match gcc.

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 3 23:47:15 PST 2019


craig.topper added a comment.

In D69786#1731942 <https://reviews.llvm.org/D69786#1731942>, @davezarzycki wrote:

> Actually, wait, what does it mean for a CPU without AVX to have `FeatureInsertVZEROUPPER`?


Means we’ll do vzeroupper insertion if you add -mavx to the command line and ymm is used. At minimum we need to have it set for pentium4, x86-64, core2, and maybe some others  since those are default CPUs on some platforms and we want vzeroupper if someone uses a default cpu and adds -mavx.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69786/new/

https://reviews.llvm.org/D69786





More information about the cfe-commits mailing list