[all-commits] [llvm/llvm-project] f7c87b: [X86] Copy the tuning features and scheduler model...

topperc via All-commits all-commits at lists.llvm.org
Mon Aug 24 14:47:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f7c87b7e376773c555d92d02d8a52a811caf2fbc
      https://github.com/llvm/llvm-project/commit/f7c87b7e376773c555d92d02d8a52a811caf2fbc
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86.td
    M llvm/lib/Target/X86/X86Subtarget.cpp
    M llvm/test/CodeGen/X86/2007-11-06-InstrSched.ll
    M llvm/test/CodeGen/X86/abi-isel.ll
    M llvm/test/CodeGen/X86/add.ll
    M llvm/test/CodeGen/X86/full-lsr.ll
    M llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll
    M llvm/test/CodeGen/X86/lsr-static-addr.ll
    M llvm/test/CodeGen/X86/masked-iv-safe.ll
    M llvm/test/CodeGen/X86/optimize-max-3.ll
    M llvm/test/CodeGen/X86/select.ll
    M llvm/test/CodeGen/X86/vec_call.ll
    M llvm/test/CodeGen/X86/vec_setcc-2.ll
    M llvm/test/CodeGen/X86/widen_cast-1.ll
    M llvm/test/tools/llvm-mca/X86/no-sched-model.s

  Log Message:
  -----------
  [X86] Copy the tuning features and scheduler model from pentium4/x86-64 to generic

This is preparation for making clang default to -mtune=generic when no -march is specified. This will allow the default tuning to be "generic" even though our default march is "pentium4" or "x86-64".

To avoid llc lit test regressions, if no mcpu is specified, I've defaulted tune to use i586 to match the old tuning settings of no CPU. Some tests explicitly used -mcpu=generic which I've removed so they instead get this default of architecture features from generic and tune from i586.

I updated one llvm-mca test to check a different CPU since generic has a scheduler model now

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




More information about the All-commits mailing list