diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-22 03:31:37 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-22 03:31:37 +0000 |
| commit | e1423639bb52a05022520b9c3513586a7f0e31ad (patch) | |
| tree | b6d2f2c52f1ab71c8a39585adfc71f05655244da /llvm/lib/Transforms/Utils/CodeExtractor.cpp | |
| parent | dc2d66e7b34c0ae93017c70900cd42a8c625b3dc (diff) | |
| download | bcm5719-llvm-e1423639bb52a05022520b9c3513586a7f0e31ad.tar.gz bcm5719-llvm-e1423639bb52a05022520b9c3513586a7f0e31ad.zip | |
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.
llvm-svn: 206857
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
0 files changed, 0 insertions, 0 deletions

