[all-commits] [llvm/llvm-project] deeb2f: [X86] Remove a couple temporary std::string for CP...

topperc via All-commits all-commits at lists.llvm.org
Wed Jul 22 15:56:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: deeb2fdbf4d9d805d2709bb7912cb596b4a90750
      https://github.com/llvm/llvm-project/commit/deeb2fdbf4d9d805d2709bb7912cb596b4a90750
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-07-22 (Wed, 22 Jul 2020)

  Changed paths:
    M llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
    M llvm/lib/Target/X86/X86Subtarget.cpp

  Log Message:
  -----------
  [X86] Remove a couple temporary std::string for CPU names that I don't need to exist.

The input to these functions is a StringRef. We then convert it
to a std::string. Then maybe replace with "generic". I think we
can just overwrite the incoming StringRef with "generic" if needed
and then pass it along without creating any std::string.




More information about the All-commits mailing list