summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-22 03:31:37 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-22 03:31:37 +0000
commit92897fda32f8df464e0056a7f1c7259303f6015e (patch)
tree22818525987303a67d2fb99cf94814e258ad2ca7 /lib/Bitcode/Reader/BitcodeReader.h
parent153a265d0182bcfe072496663c320689fd21d392 (diff)
downloadllvm-92897fda32f8df464e0056a7f1c7259303f6015e.tar.gz
llvm-92897fda32f8df464e0056a7f1c7259303f6015e.tar.bz2
llvm-92897fda32f8df464e0056a7f1c7259303f6015e.tar.xz
blockfreq: Use pointers to loops instead of an index
Store pointers directly to loops inside the nodes. This could have been done without changing the type stored in `std::vector<>`. However, rather than computing the number of loops before constructing them (which `LoopInfo` doesn't provide directly), I've switched to a `vector<unique_ptr<LoopData>>`. This adds some heap overhead, but the number of loops is typically small. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions