summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-14 09:46:33 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-14 09:46:33 +0000
commit0af6a0bb699bfb2f3f3c2ff2f47f419f1bc4d8b4 (patch)
tree8b292a2419406175abbe0a17a55c45ed1346d434 /llvm/lib/CodeGen/VirtRegMap.cpp
parent84cd44c750b0c4c0827206f97fe7591b00f0b1c3 (diff)
downloadbcm5719-llvm-0af6a0bb699bfb2f3f3c2ff2f47f419f1bc4d8b4.tar.gz
bcm5719-llvm-0af6a0bb699bfb2f3f3c2ff2f47f419f1bc4d8b4.zip
Begin chipping away at one of the biggest quadratic-ish behaviors in
this pass. We're leaving already merged blocks on the worklist, and scanning them again and again only to determine each time through that indeed they aren't viable. We can instead remove them once we're going to have to scan the worklist. This is the easy way to implement removing them. If this remains on the profile (as I somewhat suspect it will), we can get a lot more clever here, as the worklist's order is essentially irrelevant. We can use swapping and fold the two loops to reduce overhead even when there are many blocks on the worklist but only a few of them are removed. llvm-svn: 144531
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud