diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-12-09 01:06:52 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-12-09 01:06:52 +0000 |
commit | e6dc3c899ef0dcce9ccb1117542f435d5a70d089 (patch) | |
tree | 363e8f354417186e4dcf77df0aceb3c7c8739cd7 /llvm/lib/Support/CommandLine.cpp | |
parent | eb369f84ec149771411a7b74c62ce249cdc7ebfa (diff) | |
download | llvm-e6dc3c899ef0dcce9ccb1117542f435d5a70d089.zip llvm-e6dc3c899ef0dcce9ccb1117542f435d5a70d089.tar.gz llvm-e6dc3c899ef0dcce9ccb1117542f435d5a70d089.tar.bz2 |
IntervalMap iterators are heavyweight, so avoid copying them around and use
references instead.
Similarly, IntervalMap::begin() is almost as expensive as find(), so use find(x)
instead of begin().advanceTo(x);
This makes RegAllocBasic run another 5% faster.
llvm-svn: 121344
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions