[all-commits] [llvm/llvm-project] ba73aa: [X86] Add 'mmx' to all CPUs that have a version of...

topperc via All-commits all-commits at lists.llvm.org
Wed Nov 6 10:03:06 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ba73aad4f64f52f2acb5394210ed829355b44383
      https://github.com/llvm/llvm-project/commit/ba73aad4f64f52f2acb5394210ed829355b44383
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2019-11-06 (Wed, 06 Nov 2019)

  Changed paths:
    M clang/lib/Basic/Targets/X86.cpp
    M clang/test/Preprocessor/x86_target_features.c

  Log Message:
  -----------
  [X86] Add 'mmx' to all CPUs that have a version of 'sse' and weren't already enabling '3dnow'

All SSE capable CPUs have MMX. 3dnow implicitly enables MMX.

We have code that detects if sse is enabled and implicitly enables
MMX unless -mno-mmx is passed. So in most cases we were already
enabling MMX if march passed a CPU that supported SSE.

The exception to this is if you pass -march for a cpu supports SSE
and also pass -mno-sse. We should still enable MMX since its part
of the CPU capability.




More information about the All-commits mailing list