Hi,
The iterative sinking algorithm sinks load instructions step by step, so
it's better to use RPO that helps fast convergence by visiting BB before
its sink successors. Also adds a test showing the behavior change.
Thanks,
bin
Paths
| Differential D113377
[Sink] Use reverse post order in iterative sinking algorithm Needs ReviewPublic Authored by bin.cheng on Nov 7 2021, 7:03 PM.
Details
Summary Hi, Thanks,
Diff Detail
Revision Contents
Diff 385387 llvm/lib/Transforms/Scalar/Sink.cpp
llvm/test/Transforms/Sink/reverse-post-order.ll
|
clang-format: please reformat the code