[all-commits] [llvm/llvm-project] c52516: [X86] Remove unnecessary #if around call to isCpuI...

topperc via All-commits all-commits at lists.llvm.org
Thu Jun 11 15:14:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c52516819073ccc2853a347b28a4e88fa0af9cbb
      https://github.com/llvm/llvm-project/commit/c52516819073ccc2853a347b28a4e88fa0af9cbb
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M llvm/lib/Support/Host.cpp

  Log Message:
  -----------
  [X86] Remove unnecessary #if around call to isCpuIdSupported in getHostCPUName.

The exact same #if is already inside isCpuIdSupported and causes
it to return true. The definition of isCpuIdSupported isn't
conditional so we should be able just rely on its body doing
the right thing.




More information about the All-commits mailing list