summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-07 19:07:31 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-07 19:07:31 +0000
commitb77d5c148449c6144136d375252fa60a4be74547 (patch)
treeb56ea4bc9dd4c44f6633c931d48d11b9d7fad5bf /clang/lib
parentec6a2d31609da6f8f1d09e9cf85c12ca45fcb3b5 (diff)
downloadbcm5719-llvm-b77d5c148449c6144136d375252fa60a4be74547.tar.gz
bcm5719-llvm-b77d5c148449c6144136d375252fa60a4be74547.zip
Cache intermediate results during traceSiblingValue.
In some cases such as interpreters using indirectbr, the CFG can be very complicated, and live range splitting may be forced to insert a large number of phi-defs. When that happens, traceSiblingValue can spend a lot of time zipping around in the CFG looking for defs and reloads. This patch causes more information to be cached in SibValues, and the cached values are used to terminate searches early. This speeds up spilling by 20x in one interpreter test case. For more typical code, this is just a 10% speedup of spilling. llvm-svn: 139247
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud