[all-commits] [llvm/llvm-project] 475e52: [Driver][AArch64] Simplify -mtune

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jul 22 14:19:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 475e526d85003404ba521e15f8acef1b439fb910
      https://github.com/llvm/llvm-project/commit/475e526d85003404ba521e15f8acef1b439fb910
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp

  Log Message:
  -----------
  [Driver][AArch64] Simplify -mtune

llvm::sys::getHostCPUName()'s return value is not empty. `-mtune=` (empty value)
has caused a driver error. So we can omit `!TuneCPU.empty()` check.




More information about the All-commits mailing list