summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsMachineFunction.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-14 00:02:20 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-14 00:02:20 +0000
commit41f8dc897e731dbb3f9fcc14c35e222e89562c21 (patch)
tree07867acfae09b7c8a3031199055ab2d2303f74cd /llvm/lib/Target/Mips/MipsMachineFunction.h
parent670a4104a931ff8ba7c10ae3a89902b4e68ab797 (diff)
downloadbcm5719-llvm-41f8dc897e731dbb3f9fcc14c35e222e89562c21.tar.gz
bcm5719-llvm-41f8dc897e731dbb3f9fcc14c35e222e89562c21.zip
Fix an embarrassing runtime regression for RegAllocFast.
This loop is quadratic in the capacity for a DenseMap: while(!map.empty()) map.erase(map.begin()); Instead we now do a normal begin() - end() iteration followed by map.clear(). That also has the nice sideeffect of shrinking the map capacity on demand. llvm-svn: 103747
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMachineFunction.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud