================ @@ -384,13 +384,14 @@ class AMDGPUWaitSGPRHazards { } } - bool Changed = State != BlockState[&MBB].Out; + auto &BS = BlockState[&MBB]; ---------------- kazutakahirata wrote: I've replaced `auto` with `BlockHazardState`. Thanks! https://github.com/llvm/llvm-project/pull/127573