[PATCH] D155343: MachineSink: Fix sinking VGPR def out of a divergent loop

Ruiling, Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 19:53:40 PDT 2023


ruiling added a comment.

I think a more accurate description of the real problem is: sinking vgpr def which has a loop-variant sgpr source out of divergent loop is wrong for AMDGPU. For other cases, it is still legal to move out of loop. The problem is not specific to nested loops, it also applies to single loop. The test case has been over-simplified and does not show original problem (both .ll and .mir test). We can keep the code as now, but I still think it's better to update the tests to show the real problem to make it easy to revisit the issue.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155343/new/

https://reviews.llvm.org/D155343



More information about the llvm-commits mailing list