[all-commits] [llvm/llvm-project] 413689: [DebugInfo][InstrRef][NFC] Switch to using DenseMa...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Mon Oct 25 10:08:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4136897bd4541f5c5e9677e297dabcfe9e367010
      https://github.com/llvm/llvm-project/commit/4136897bd4541f5c5e9677e297dabcfe9e367010
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
    M llvm/unittests/CodeGen/InstrRefLDVTest.cpp

  Log Message:
  -----------
  [DebugInfo][InstrRef][NFC] Switch to using DenseMaps and similar

There are a few STL containers hanging around that can become DenseMaps,
SmallVectors and similar. This recovers a modest amount of compile time
performance.

While I'm here, adjust the bit layout of ValueIDNum: this was always
supposed to act like a value type, however it seems that clang doesn't
compile the comparison functions to act that way. Add a uint64_t to a
union that explicitly aliases the bitfields, so that we can compare the
whole value as a single integer.

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




More information about the All-commits mailing list