[all-commits] [llvm/llvm-project] 5a7b39: [llc] Use CPUStr instead of calling codegen::getMC...

Lu Weining via All-commits all-commits at lists.llvm.org
Tue Aug 30 17:49:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a7b39ce75a70855aa2eb1146275977b9f655588
      https://github.com/llvm/llvm-project/commit/5a7b39ce75a70855aa2eb1146275977b9f655588
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2022-08-31 (Wed, 31 Aug 2022)

  Changed paths:
    M llvm/tools/llc/llc.cpp

  Log Message:
  -----------
  [llc] Use CPUStr instead of calling codegen::getMCPU(). NFC

`getCPUStr()` fallsback to `getMCPU()`.

The only difference between `getCPUStr()` and `getMCPU()` is that
`getCPUStr()` handles `-mcpu=native`. That doesn't matter for this case.

This is just a simplification of the original code and it does not
change the functionality. So no new tests added.

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




More information about the All-commits mailing list