This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Don't fold cndmask into compare in different block
AbandonedPublic

Authored by arsenm on Jun 21 2022, 5:41 PM.

Details

Reviewers
rampitec
Group Reviewers
Restricted Project
Summary

We were hitting a liveness error if the register use moved into the
compare's block if the register needs to be live out. Handling the
liveness update across blocks is much more complicated and probably
not worth it. I doubt this pattern appears in real code across blocks.
I'm also not completely sure if this was correct in the presence of
loops anyway.

Diff Detail