summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LatencyPriorityQueue.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-05-20 18:34:54 +0000
committerAlexey Samsonov <samsonov@google.com>2014-05-20 18:34:54 +0000
commitdfcaf9c8d833313a3cc950618d7f3b2f17557b33 (patch)
treeda127e8d3050e04083ee7cd111d5e220c0ec61aa /llvm/lib/CodeGen/LatencyPriorityQueue.cpp
parent065da7c53a2cacf0d674cf8679058d2d1e0a937b (diff)
downloadbcm5719-llvm-dfcaf9c8d833313a3cc950618d7f3b2f17557b33.tar.gz
bcm5719-llvm-dfcaf9c8d833313a3cc950618d7f3b2f17557b33.zip
Rewrite calculateDbgValueHistory to make it (hopefully) more transparent.
This change preserves the original algorithm of generating history for user variables, but makes it more clear. High-level description of algorithm: Scan all the machine basic blocks and machine instructions in the order they are emitted to the object file. Do the following: 1) If we see a DBG_VALUE instruction, add it to the history of the corresponding user variable. Keep track of all user variables, whose locations are described by a register. 2) If we see a regular instruction, look at all the registers it clobbers, and terminate the location range for all variables described by these registers. 3) At the end of the basic block, terminate location ranges for all user variables described by some register. Although this change shouldn't be user-visible (the contents of .debug_loc section should be the same), it changes some internal assumptions about the set of instructions used to track the variable locations. Watching the bots. llvm-svn: 209225
Diffstat (limited to 'llvm/lib/CodeGen/LatencyPriorityQueue.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud