[all-commits] [llvm/llvm-project] ba852e: [X86] Don't call hasFnAttribute and getFnAttribute...

topperc via All-commits all-commits at lists.llvm.org
Thu Aug 27 10:41:12 PDT 2020


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

  Changed paths:
    M llvm/lib/Target/X86/X86TargetMachine.cpp

  Log Message:
  -----------
  [X86] Don't call hasFnAttribute and getFnAttribute for 'prefer-vector-width' and 'min-legal-vector-width' in getSubtargetImpl

We only need to call getFnAttribute and then check if the Attribute
is None or not.




More information about the All-commits mailing list