[all-commits] [llvm/llvm-project] 1f20cb: [AMDGPU] Simplify `GCNRegPressure::RegKind` (NFC) ...
Lucas Ramirez via All-commits
all-commits at lists.llvm.org
Wed Jun 4 02:24:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f20cb9829240586ea215c4681f6f402ecccbb63
https://github.com/llvm/llvm-project/commit/1f20cb9829240586ea215c4681f6f402ecccbb63
Author: Lucas Ramirez <11032120+lucas-rami at users.noreply.github.com>
Date: 2025-06-04 (Wed, 04 Jun 2025)
Changed paths:
M llvm/lib/Target/AMDGPU/GCNRegPressure.cpp
M llvm/lib/Target/AMDGPU/GCNRegPressure.h
Log Message:
-----------
[AMDGPU] Simplify `GCNRegPressure::RegKind` (NFC) (#142682)
This NFC simplifies the `GCNRegPressure::RegKind` enum so that instead
of containing a pair of values for each type of register (one for
non-tuple registers and one for tuple registers of that type) it only
contains one value representing all registers of that type.
The `GCNRegPressure::Value` array is still sized as before, though all
elements corresponding to tuple-kinds now start after all elements
corresponding to non-tuple-kinds instead of the two being interleaved.
This allows to simplify the `GCNRegPressure::inc` logic, eliminating the
switch entirely.
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