[all-commits] [llvm/llvm-project] 41491c: [CodeGen] Allocate RegAllocHints map lazily (#102186)
Alexis Engelke via All-commits
all-commits at lists.llvm.org
Tue Aug 6 22:56:53 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41491c77231e9d389ef18593be1fab4f4e810e88
https://github.com/llvm/llvm-project/commit/41491c77231e9d389ef18593be1fab4f4e810e88
Author: Alexis Engelke <engelke at in.tum.de>
Date: 2024-08-07 (Wed, 07 Aug 2024)
Changed paths:
M llvm/include/llvm/CodeGen/MachineRegisterInfo.h
M llvm/lib/CodeGen/MachineRegisterInfo.cpp
M llvm/lib/CodeGen/TargetRegisterInfo.cpp
M llvm/tools/llvm-reduce/ReducerWorkItem.cpp
M llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.cpp
Log Message:
-----------
[CodeGen] Allocate RegAllocHints map lazily (#102186)
This hint map is not required whenever a new register is added, in fact,
at -O0, it is not used at all. Growing this map is quite expensive, as
SmallVectors are not trivially copyable.
Grow this map only when hints are actually added to avoid multiple grows
and grows when no hints are added at all.
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