[all-commits] [llvm/llvm-project] 40e356: [TableGen] Replace std::shared_ptr with Instrusive...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Apr 14 10:57:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40e356d67fb258ab6c3b8f6bedea3982f93e0b57
      https://github.com/llvm/llvm-project/commit/40e356d67fb258ab6c3b8f6bedea3982f93e0b57
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M llvm/utils/TableGen/CodeGenDAGPatterns.cpp
    M llvm/utils/TableGen/CodeGenDAGPatterns.h

  Log Message:
  -----------
  [TableGen] Replace std::shared_ptr with InstrusiveRefCntPtr for TreePatternNode. NFC

An intrusive reference counter uses less memory than the control
block of std::shared_ptr.

This should allow some additional code simplifications if we
don't need to pass around shared_ptr in order to create new
shared_ptrs.




More information about the All-commits mailing list