This is an archive of the discontinued LLVM Phabricator instance.

[Sink] Use reverse post order in iterative sinking algorithm
Needs ReviewPublic

Authored by bin.cheng on Nov 7 2021, 7:03 PM.

Details

Reviewers
sunfish
Summary

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

Diff Detail

Event Timeline

bin.cheng created this revision.Nov 7 2021, 7:03 PM
bin.cheng requested review of this revision.Nov 7 2021, 7:03 PM