This is an archive of the discontinued LLVM Phabricator instance.

[Polly] [CodeGen] Track trip counts per-scop for performance measurement.
ClosedPublic

Authored by bollu on Jun 2 2017, 3:38 AM.

Details

Summary
  • Add a counter that is incremented once on exit from a scop. This tells us

the number of times a scop has been executed.

  • Test cases for per-scop metrics are split into two: one to test cycles, and another one to test trip counts.
  • Sample output:
sample-output.txt
scop function, entry block name, exit block name, total time, trip count
warmup, %entry.split, %polly.merge_new_and_old, 5180, 1
f, %entry.split, %polly.merge_new_and_old, 409944, 500
g, %entry.split, %polly.merge_new_and_old, 1226, 1

Diff Detail

Repository
rL LLVM

Event Timeline

bollu created this revision.Jun 2 2017, 3:38 AM
bollu retitled this revision from [CodeGen] Track trip counts per-scop for performance measurement. to [Polly] [CodeGen] Track trip counts per-scop for performance measurement..Jun 2 2017, 3:43 AM
grosser accepted this revision.Jun 2 2017, 3:54 AM

LGTM.

This revision is now accepted and ready to land.Jun 2 2017, 3:54 AM
This revision was automatically updated to reflect the committed changes.
polly/trunk/test/Isl/CodeGen/perf_monitoring_cycles_per_scop.ll