[all-commits] [llvm/llvm-project] 67beeb: [TableGen][SubtargetEmitter] Refactor hasReadOfWri...

Michael Maitland via All-commits all-commits at lists.llvm.org
Tue May 14 14:15:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67beebfcb9a267cc1e443aa4d3788adbfcf02639
      https://github.com/llvm/llvm-project/commit/67beebfcb9a267cc1e443aa4d3788adbfcf02639
  Author: Michael Maitland <michaeltmaitland at gmail.com>
  Date:   2024-05-14 (Tue, 14 May 2024)

  Changed paths:
    M llvm/utils/TableGen/Common/CodeGenSchedule.cpp
    M llvm/utils/TableGen/Common/CodeGenSchedule.h
    M llvm/utils/TableGen/SubtargetEmitter.cpp

  Log Message:
  -----------
  [TableGen][SubtargetEmitter] Refactor hasReadOfWrite to CodeGenProcModel (#92032)

SubtargetEmitter::GenSchedClassTables takes a CodeGenProcModel, but
calls hasReadOfWrite which loops over all ProcModels. We move
hasReadOfWrite to CodeGenProcModel and remove the loop over all
ProcModels. This leads to a 144% speedup on the RISC-V backend of our
downstream.



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