Files
clang-p2996/llvm/lib/Target/AMDGPU/GCNRegPressure.cpp
Lucas Ramirez 1f20cb9829 [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.
2025-06-04 11:23:57 +02:00

30 KiB