[AMDGPU] More precise limit on SALU cycles in s_delay_alu instructions
authorJay Foad <jay.foad@amd.com>
Sun, 5 Mar 2023 08:12:02 +0000 (08:12 +0000)
committerJay Foad <jay.foad@amd.com>
Sun, 5 Mar 2023 08:14:15 +0000 (08:14 +0000)
commit7ba61eaf34c34f1bec6bfa920f3cfa5e5174eb71
tree236a26ed59117eb0a47b001b9c26de6fcffc7ac0
parent7abf6c2524d0ea0363b5d34803d921db73b6c505
[AMDGPU] More precise limit on SALU cycles in s_delay_alu instructions

This just tweaks the fix for D145232 to make the limit more precise, so
that we could actually emit a delay of 3 SALU cycles (the maximum) if we
had any SALU instructions that required it.
llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp