[PATCH] D130797: [AMDGPU] Implement pipeline solver for non-trivial pipelines
Jannik Silvanus via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 16 06:17:00 PDT 2022
jsilvanus added a comment.
Not sure how much effort you are willing to put into the exact algorithm. But maybe you can improve the performance by adding some lower bounds on future costs to improve pruning?
More specifically, when evaluating a partial solution S with cost C, and comparing it against the currently best solution BS with cost BC, you currently prune if C > BC.
I'm proposing to compute some lower bound LC on the cost of the decisions that have not yet been made (e.g. adding the costs of cheapest assignments), and pruning if C + LC > BC.
I did not review the algorithm in enough detail to make a more concrete proposal, and it could very well be that computing a non-trivial lower bound (i.e. one that is not zero) is difficult.
However, in similar problems the technique above often helps a lot.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130797/new/
https://reviews.llvm.org/D130797
More information about the llvm-commits
mailing list