summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
diff options
context:
space:
mode:
authorbmahjour <bmahjour@ca.ibm.com>2019-11-25 11:12:37 -0500
committerbmahjour <bmahjour@ca.ibm.com>2019-11-25 11:28:58 -0500
commitbec37c3fc766a7b97f8c52c181c325fd47b75259 (patch)
tree44ba83f3ff3969e7f4cf1f6070f58cac16d156c8 /llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
parentfc31b58eff9da4447f9f332f07de3cd07ab4b56c (diff)
downloadbcm5719-llvm-bec37c3fc766a7b97f8c52c181c325fd47b75259.tar.gz
bcm5719-llvm-bec37c3fc766a7b97f8c52c181c325fd47b75259.zip
[DDG] Data Dependence Graph - Topological Sort
Summary: In this patch the DDG DAG is sorted topologically to put the nodes in the graph in the order that would satisfy all dependencies. This helps transformations that would like to generate code based on the DDG. Since the DDG is a DAG a reverse-post-order traversal would give us the topological ordering. This patch also sorts the basic blocks passed to the builder based on program order to ensure that the dependencies are computed in the correct direction. Authored By: bmahjour Reviewer: Meinersbur, fhahn, myhsu, xtian, dmgreen, kbarton, jdoerfert Reviewed By: Meinersbur Subscribers: ychen, arphaman, simoll, a.elovikov, mgorny, hiraditya, jfb, wuzish, llvm-commits, jsji, Whitney, etiotto, ppc-slack Tags: #llvm Differential Revision: https://reviews.llvm.org/D70609
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeMoverUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud