aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-08-31 17:58:19 +0000
committerJim Grosbach <grosbach@apple.com>2010-08-31 17:58:19 +0000
commit365e931f7bec11708bef40011abdcc639efe499e (patch)
treea13bdda3feb0f21da96a0ce9193f48c4477428af /lldb/source/Commands/CommandObjectProcess.cpp
parent444c24a9f024f70e6fd401e3a5ab39c169a74c39 (diff)
downloadllvm-365e931f7bec11708bef40011abdcc639efe499e.zip
llvm-365e931f7bec11708bef40011abdcc639efe499e.tar.gz
llvm-365e931f7bec11708bef40011abdcc639efe499e.tar.bz2
Improve virtual frame base register allocation heuristics.
1. Allocate them in the entry block of the function to enable function-wide re-use. The instructions to create them should be re-materializable, so there shouldn't be additional cost compared to creating them local to the basic blocks where they are used. 2. Collect all of the frame index references for the function and sort them by the local offset referenced. Iterate over the sorted list to allocate the virtual base registers. This enables creation of base registers optimized for positive-offset access of frame references. (Note: This may be appropriate to later be a target hook to do the sorting in a target appropriate manner. For now it's done here for simplicity.) llvm-svn: 112609
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions