aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-02-13 10:46:36 +0000
committerManuel Klimek <klimek@google.com>2013-02-13 10:46:36 +0000
commit2ef908e4e28ae865e4049c6a325b9e19f29b7227 (patch)
treeb881e9deab70071ea95e3b304bb97e603b76db4a /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent5992fb56018cefe9ef3ae4dc2c3af0020d2d9b23 (diff)
downloadllvm-2ef908e4e28ae865e4049c6a325b9e19f29b7227.zip
llvm-2ef908e4e28ae865e4049c6a325b9e19f29b7227.tar.gz
llvm-2ef908e4e28ae865e4049c6a325b9e19f29b7227.tar.bz2
An attempt to make the search algorithm easier to understand.
- clear ownership: the SpecificBumpPtrAllocator owns all StateNodes - this allows us to simplify the memoization data structure into a std::set (FIXME: figure out whether we want to use a hash based data structure). - introduces StateNode as recursive data structure, instead of using Edge and the Seen-map combined to drill through the graph - using a count to stabilize the penalty instead of relying on the container - pulled out a method to forward-apply states in the end This leads to a ~40% runtime decrease on Nico's benchmark. Main FiXME is that the parameter lists of some function get too long. I'd vote for either pulling the Queue etc into the Formatter proper, or creating an inner class just for the search algorithm. llvm-svn: 175051
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions