summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-03 18:32:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-03 18:32:42 +0000
commit210fc62a9164362144c5da25f7317441ce4299a8 (patch)
tree123152d0c9a8b2cc94a61baefbaf2d58a4b84372 /clang/lib/CodeGen/CodeGenModule.cpp
parentc0042d804c8af643671fac709659945a3285dbbf (diff)
downloadbcm5719-llvm-210fc62a9164362144c5da25f7317441ce4299a8.tar.gz
bcm5719-llvm-210fc62a9164362144c5da25f7317441ce4299a8.zip
In some rare cases, the register allocator can spill registers but end up not utilizing registers at all. The fundamental problem is linearscan's backtracking can end up freeing more than one allocated registers. However, reloads and restores might be folded into uses / defs and freed registers might not be used at all.
VirtRegMap keeps track of allocations so it knows what's not used. As a horrible hack, the stack coloring can color spill slots with *free* registers. That is, it replace reload and spills with copies from and to the free register. It unfold instructions that load and store the spill slot and replace them with register using variants. Not yet enabled. This is part 1. More coming. llvm-svn: 70787
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud