[llvm] [AMDGPU] Guard RewriteMFMAFormStage recolor against unsafe def/use (PR #217396)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 01:18:09 PDT 2026


xgxanq wrote:

> Thanks for continuing to work on this. I'd like to move forward on some version of this since the stage is critical for co-exec scheduler. My understanding is that, aside from the general code cleanup comments, the change to express the recolor safety check in terms of users is still being worked on. Is that correct?
> 
> One more note: I tried this locally, and expressing the check on users also allows removing the `IsDst` flag. The resulting signature is just `isRecolorSafe(Reg, RewriteCandsSet)`, which I think reads better. This is related to @lucas-rami's comment.

This bug fix is fully ready. I prefer landing this PR first and handling follow-up work in separate PRs.

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


More information about the llvm-commits mailing list