diff options
author | Lang Hames <lhames@gmail.com> | 2013-11-09 00:14:07 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2013-11-09 00:14:07 +0000 |
commit | fc93ae629e49b00fc1cc536d93f1b106bcd0937d (patch) | |
tree | bdf5d1b14e8c4b800482b0f778e0b4e8eac0799f /utils | |
parent | 623d2e618f4e672c47edff9ec63ed6d733ac81d3 (diff) | |
download | external_llvm-fc93ae629e49b00fc1cc536d93f1b106bcd0937d.zip external_llvm-fc93ae629e49b00fc1cc536d93f1b106bcd0937d.tar.gz external_llvm-fc93ae629e49b00fc1cc536d93f1b106bcd0937d.tar.bz2 |
Rewrite the PBQP graph data structure.
The new graph structure replaces the node and edge linked lists with vectors.
Free lists (well, free vectors) are used for fast insertion/deletion.
The ultimate aim is to make PBQP graphs cheap to clone. The motivation is that
the PBQP solver destructively consumes input graphs while computing a solution,
forcing the graph to be fully reconstructed for each round of PBQP. This
imposes a high cost on large functions, which often require several rounds of
solving/spilling to find a final register allocation. If we can cheaply clone
the PBQP graph and incrementally update it between rounds then hopefully we can
reduce this cost. Further, once we begin pooling matrix/vector values (future
work), we can cache some PBQP solver metadata and share it between cloned
graphs, allowing the PBQP solver to re-use some of the computation done in
earlier rounds.
For now this is just a data structure update. The allocator and solver still
use the graph the same way as before, fully reconstructing it between each
round. I expect no material change from this update, although it may change
the iteration order of the nodes, causing ties in the solver to break in
different directions, and this could perturb the generated allocations
(hopefully in a completely benign way).
Thanks very much to Arnaud Allard de Grandmaison for encouraging me to get back
to work on this, and for a lot of discussion and many useful PBQP test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions