[PATCH] D132511: [AMDGPU] Detect uniformness of TID / wavefrontsize

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 17:08:49 PDT 2022


rampitec added a comment.

A bit of explanation why change to the isUniformLoad is needed. The DA is stateless analysis and we can attach amdgpu.uniform metadata to the GEP, but when it comes to SDag DA cannot help and SDag sees the node as divergent. Even if divergent bit is unset on the node during dag creation it hardly helps after dag combines losing it when killing the original shift node. Moreover, dag combines create a pattern which is much more difficult to recognize. So checking the MMO metadata (much like gisel does, it relies on the MMO metadata completely for that).


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

https://reviews.llvm.org/D132511



More information about the llvm-commits mailing list