summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
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
commite1423639bb52a05022520b9c3513586a7f0e31ad (patch)
treeb6d2f2c52f1ab71c8a39585adfc71f05655244da /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parentdc2d66e7b34c0ae93017c70900cd42a8c625b3dc (diff)
downloadbcm5719-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/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud