[all-commits] [llvm/llvm-project] 94da2c: [X86] Avoid std::string creation in RecognizableIn...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Dec 18 08:01:10 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94da2cf650dd4397e8f84982c81e70f7a1825103
      https://github.com/llvm/llvm-project/commit/94da2cf650dd4397e8f84982c81e70f7a1825103
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-12-18 (Fri, 18 Dec 2020)

  Changed paths:
    M llvm/utils/TableGen/X86RecognizableInstr.cpp

  Log Message:
  -----------
  [X86] Avoid std::string creation in RecognizableInstr constructor. NFCI.

The value names in byteFromRec calls are compile time constants - just create StringRef directly instead of via std::string.




More information about the All-commits mailing list