[llvm] [AMDGPU] Tweak sched model latencies for VALU fast-forward cases (PR #198475)
Igor Wodiany via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 01:44:32 PDT 2026
================
@@ -830,6 +830,22 @@ void GCNSubtarget::adjustSchedDependency(
Dep.setLatency(InstrInfo.getSchedModel().computeOperandLatency(
DefI, DefOpIdx, UseI, UseOpIdx));
}
+
+ // Handle "fast-forward" cases for VALU dependencies via a lanemask-like SGPR:
+ // V_CMP* -> V_CNDMASK_B32
+ // V_ADD/SUB with carryout -> V_ADD/SUB with carryin (on GFX10+)
+ switch (UseI->getOpcode()) {
+ case AMDGPU::V_ADDC_U32_e64:
----------------
IgWod wrote:
If you stick to VOP2 and VOP3 you could normalize one to another using `getVOPe64`/`getVOPe32`? I'm not aware of a general lookup (which doesn't mean it doesn't exist) other than the one specific to VOPD instruction.
https://github.com/llvm/llvm-project/pull/198475
More information about the llvm-commits
mailing list