[all-commits] [llvm/llvm-project] 739a96: [RegAlloc] Don't call always-true ShouldAllocClass...

Alexis Engelke via All-commits all-commits at lists.llvm.org
Fri Jun 21 04:18:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 739a9605677dd736971b17a7888f9d18fd245904
      https://github.com/llvm/llvm-project/commit/739a9605677dd736971b17a7888f9d18fd245904
  Author: Alexis Engelke <engelke at in.tum.de>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/RegAllocCommon.h
    M llvm/include/llvm/CodeGen/RegAllocFast.h
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/lib/CodeGen/RegAllocBase.cpp
    M llvm/lib/CodeGen/RegAllocBase.h
    M llvm/lib/CodeGen/RegAllocBasic.cpp
    M llvm/lib/CodeGen/RegAllocFast.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.h
    M llvm/lib/Passes/PassBuilder.cpp

  Log Message:
  -----------
  [RegAlloc] Don't call always-true ShouldAllocClass (#96296)

Previously, there was at least one virtual function call for every
allocated register. The only users of this feature are AMDGPU and RISC-V
(RVV), other targets don't use this. To easily identify these cases,
change the default functor to nullptr and don't call it for every
allocated register.



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