[all-commits] [llvm/llvm-project] 012360: [RISCV] Minor improvements/cleanup to target attri...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Nov 29 12:58:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0123608822a7b58d6deca528eef8dc958420acd1
      https://github.com/llvm/llvm-project/commit/0123608822a7b58d6deca528eef8dc958420acd1
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-11-29 (Wed, 29 Nov 2023)

  Changed paths:
    M clang/lib/Basic/Targets/RISCV.cpp

  Log Message:
  -----------
  [RISCV] Minor improvements/cleanup to target attribute handling. NFC (#73851)

Use ArrayRef to avoid a vector copy.
Replace a push_back loop with a call to std::vector::insert.




More information about the All-commits mailing list