summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorBardia Mahjour <bmahjour@ca.ibm.com>2019-12-02 15:23:26 -0500
committerBardia Mahjour <bmahjour@ca.ibm.com>2019-12-03 10:08:25 -0500
commit2dd82a1c04961cac05966f29d22a2b4b42b01b69 (patch)
tree1559215513d16fdc40491bd1f3fbd99aad463098 /llvm/lib/CodeGen/LiveDebugValues.cpp
parent970d9719ea0d15795694d7686d4d8eb524bba379 (diff)
downloadbcm5719-llvm-2dd82a1c04961cac05966f29d22a2b4b42b01b69.tar.gz
bcm5719-llvm-2dd82a1c04961cac05966f29d22a2b4b42b01b69.zip
[DDG] Data Dependence Graph - Topological Sort (Memory Leak Fix)
Summary: This fixes the memory leak in bec37c3fc766a7b97f8c52c181c325fd47b75259 and re-delivers the reverted patch. 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/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud