[all-commits] [llvm/llvm-project] d7879e: [ARM] Use DenseSet instead of DenseMap. NFC (#131978)

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Mar 19 08:32:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7879e524fbbc4c2790dac62343444191f736f00
      https://github.com/llvm/llvm-project/commit/d7879e524fbbc4c2790dac62343444191f736f00
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M llvm/lib/Target/ARM/ARMISelLowering.cpp

  Log Message:
  -----------
  [ARM] Use DenseSet instead of DenseMap. NFC (#131978)

The value in the map is set to "true" when something is added to the
map.

Techncally this:

  if (!DefRegs.contains(Reg))

will set the value in the map to false if it didn't already exist, and
this is used to indicate the value wasn't in the map. This only occurs
after all the "true" values have already been added to the map.



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