Skip to content

Commit

Permalink
[AArch64][GISEL] Reduce likelihood of hash collisions for mappings in…
Browse files Browse the repository at this point in the history
… RegisterBankInfo
  • Loading branch information
marcauberer committed Mar 29, 2024
1 parent 3f69d90 commit 67c9281
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/include/llvm/CodeGen/RegisterBankInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,22 +399,22 @@ class RegisterBankInfo {

/// Keep dynamically allocated PartialMapping in a separate map.
/// This shouldn't be needed when everything gets TableGen'ed.
mutable DenseMap<unsigned, std::unique_ptr<const PartialMapping>>
mutable DenseMap<hash_code, std::unique_ptr<const PartialMapping>>
MapOfPartialMappings;

/// Keep dynamically allocated ValueMapping in a separate map.
/// This shouldn't be needed when everything gets TableGen'ed.
mutable DenseMap<unsigned, std::unique_ptr<const ValueMapping>>
mutable DenseMap<hash_code, std::unique_ptr<const ValueMapping>>
MapOfValueMappings;

/// Keep dynamically allocated array of ValueMapping in a separate map.
/// This shouldn't be needed when everything gets TableGen'ed.
mutable DenseMap<unsigned, std::unique_ptr<ValueMapping[]>>
mutable DenseMap<hash_code, std::unique_ptr<ValueMapping[]>>
MapOfOperandsMappings;

/// Keep dynamically allocated InstructionMapping in a separate map.
/// This shouldn't be needed when everything gets TableGen'ed.
mutable DenseMap<unsigned, std::unique_ptr<const InstructionMapping>>
mutable DenseMap<hash_code, std::unique_ptr<const InstructionMapping>>
MapOfInstructionMappings;

/// Getting the minimal register class of a physreg is expensive.
Expand Down

0 comments on commit 67c9281

Please sign in to comment.