[all-commits] [llvm/llvm-project] e069bb: [RISCV] Use map::count instead of hasExtension in ...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu May 9 20:25:17 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e069bb7fd85b69abded27b44f33bf40a522ab9b6
      https://github.com/llvm/llvm-project/commit/e069bb7fd85b69abded27b44f33bf40a522ab9b6
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M llvm/lib/TargetParser/RISCVISAInfo.cpp

  Log Message:
  -----------
  [RISCV] Use map::count instead of hasExtension in RISCVISAInfo::updateCombination. NFC

hasExtension check isSupportedExtension before the map lookup. All
of the extensions we check for in updateCombination should be valid
extension names so we can bypass that to save some time.



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