rampitec added inline comments. ================ Comment at: lib/Target/AMDGPU/GCNSchedStrategy.cpp:426 + if (begin()->isDebugValue()) + return; + ---------------- I believe you need to skip it, not ignore the whole block. https://reviews.llvm.org/D32572