[all-commits] [llvm/llvm-project] b2e78a: [NFC] Use SmallString instead of std::string for t...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Tue Mar 16 05:35:07 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b2e78a061c06546c42a977071047cd9da2194a32
      https://github.com/llvm/llvm-project/commit/b2e78a061c06546c42a977071047cd9da2194a32
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.h
    M llvm/lib/IR/Attributes.cpp

  Log Message:
  -----------
  [NFC] Use SmallString instead of std::string for the AttrBuilder

This avoids a few unnecessary conversion from StringRef to std::string, and a
bunch of extra allocation thanks to the SmallString.

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




More information about the All-commits mailing list