[PATCH] D131150: [AMDGPU][SIAnnotateCF] Support Conditions Using a Common Basic Block
Ruiling, Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 08:13:28 PDT 2022
ruiling added a comment.
Hi @Pierre-vh Thanks for working on this. I have to say that the si-annotate-control-flow was not designed to run separately. The control flow lowering process for AMDGPU was completed by several llvm passes running one by one. Also as @arsenm said, the control flow lowering process might change in the future, so a llc test is more helpful.
For this specific issue, I think this might share the same root-cause with D131181 <https://reviews.llvm.org/D131181>. I have leaved some comments there. My point is the si-annotate-control-flow assume the CFG of the input function should already being structurized, but this case happened to skip the structurization process because the unify-function-divergent-exit tries to optimize for uniformly reachable Unreachable block. I am not sure whether we have any workload depend on such optimization. Changing the behavior of unify-function-divergent-exit might regress quality of generated code in some cases. But teaching the existing structurizer to work on such case might need some non-trivial effort. Any comment? @arsenm
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131150/new/
https://reviews.llvm.org/D131150
More information about the llvm-commits
mailing list