summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-26 03:20:37 +0000
committerChris Lattner <sabre@nondot.org>2008-11-26 03:20:37 +0000
commit6d71b7fb95688b72f40674bc05945810c64ab623 (patch)
tree6940d7a51b422d9ca2f541f0de6eebde5799f072 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parentea0bd51cae34e966c043e3cf24066d57a6b3bc93 (diff)
downloadbcm5719-llvm-6d71b7fb95688b72f40674bc05945810c64ab623.tar.gz
bcm5719-llvm-6d71b7fb95688b72f40674bc05945810c64ab623.zip
Improve ValueAlreadyLiveAtInst with a cheap and dirty, but effective
heuristic: the value is already live at the new memory operation if it is used by some other instruction in the memop's block. This is cheap and simple to compute (moreso than full liveness). This improves the new heuristic even more. For example, it cuts two out of three new instructions out of 255.vortex:DbmFileInGrpHdr, which is one of the functions that the heuristic regressed. This overall eliminates another 40 instructions from 403.gcc and visibly reduces register pressure in 255.vortex (though this only actually ends up saving the 2 instructions from the whole program). llvm-svn: 60084
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud