[all-commits] [llvm/llvm-project] c4c059: PeepholeOpt: Stop allocating tiny helper classes

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jan 22 17:57:47 PST 2025


  Branch: refs/heads/users/arsenm/peephole-opt-avoid-allocating-small-helper-structs
  Home:   https://github.com/llvm/llvm-project
  Commit: c4c0592d2e82c52668d5d1181a9109629bd0884e
      https://github.com/llvm/llvm-project/commit/c4c0592d2e82c52668d5d1181a9109629bd0884e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-01-23 (Thu, 23 Jan 2025)

  Changed paths:
    M llvm/lib/CodeGen/PeepholeOptimizer.cpp

  Log Message:
  -----------
  PeepholeOpt: Stop allocating tiny helper classes

This was allocating tiny helper classes for every instruction
visited. We can just dispatch over the cases in the visitor
function instead.



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