[all-commits] [llvm/llvm-project] e57dfa: [RDF] Replace unordered_map with DenseMap. NFC (#2...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 16 21:53:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e57dfa3d1ff53b08311417104fe144f82f7b591b
      https://github.com/llvm/llvm-project/commit/e57dfa3d1ff53b08311417104fe144f82f7b591b
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-06-17 (Wed, 17 Jun 2026)

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

  Log Message:
  -----------
  [RDF] Replace unordered_map with DenseMap. NFC (#204280)

std::unordered_map is slow. Switch DefStackMap and RefMap to DenseMap.
erase-while-iterating loops become DenseMap::remove_if.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list