[llvm] [AMDGPU] Remove s_delay_alu for VALU->SGPR->SALU (PR #127212)

Ana Mihajlovic via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 07:40:21 PST 2025


================
@@ -423,16 +419,13 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
         if (SII->isVALU(MI.getOpcode())) {
           for (const auto &Op : MI.defs()) {
             Register Reg = Op.getReg();
-            for (MCRegUnit Unit : TRI->regunits(Reg)) {
-              if (AMDGPU::isSGPR(Reg, TRI)) {
-                lastSGPRfromVALU = Unit;
-                break;
-              }
+            if (AMDGPU::isSGPR(Reg, TRI)) {
----------------
mihajlovicana wrote:

eliminating the outer loop

https://github.com/llvm/llvm-project/pull/127212


More information about the llvm-commits mailing list