[llvm] [AMDGPU] Latency calculation must be independent of debug insts (PR #177052)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 21 09:26:10 PST 2026


================
@@ -644,6 +644,8 @@ void GCNSubtarget::adjustSchedDependency(
     MachineBasicBlock::const_instr_iterator E(DefI->getParent()->instr_end());
     unsigned Lat = 0;
     for (++I; I != E && I->isBundledWithPred(); ++I) {
+      if (I->isDebugInstr())
----------------
LU-JOHN wrote:

Done.

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


More information about the llvm-commits mailing list