[all-commits] [llvm/llvm-project] a394aa: [LiveVariables] Replace std::vector with SmallVector.

Nadav Rotem via All-commits all-commits at lists.llvm.org
Thu Jul 16 11:46:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a394aa1b974bd320242569e5bed53284010cfa63
      https://github.com/llvm/llvm-project/commit/a394aa1b974bd320242569e5bed53284010cfa63
  Author: Nadav Rotem <nadav256 at gmail.com>
  Date:   2020-07-16 (Thu, 16 Jul 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/LiveVariables.h
    M llvm/lib/CodeGen/LiveVariables.cpp

  Log Message:
  -----------
  [LiveVariables] Replace std::vector with SmallVector.

Replace std::vector with SmallVector to reduce the number of mallocs.
This method is frequently executed, and the number of elements in the
vector is typically small.

https://reviews.llvm.org/D83920




More information about the All-commits mailing list