[PATCH] D31599: [CodeGen] Add Performance Monitor
Tobias Grosser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 3 06:20:28 PDT 2017
grosser created this revision.
grosser added a project: Polly.
Herald added a subscriber: mgorny.
Add support for -polly-codegen-perf-monitoring. When performance monitoring
is enabled, we emit performance monitoring code during code generation that
prints after program exit statistics about the total number of cycles executed
as well as the number of cycles spent in scops. This gives an estimate on how
useful polyhedral optimizations might be for a given program.
Example output:
Polly runtime information
-------------------------
Total: 783110081637
Scops: 663718949365
In the future, we might also add functionality to measure how much time is spent
in optimized scops and how many cycles are spent in the fallback code.
https://reviews.llvm.org/D31599
Files:
include/polly/CodeGen/PerfMonitor.h
lib/CMakeLists.txt
lib/CodeGen/CodeGeneration.cpp
lib/CodeGen/PerfMonitor.cpp
test/Isl/CodeGen/perf_monitoring.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31599.93852.patch
Type: text/x-patch
Size: 20381 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170403/739087c6/attachment.bin>
More information about the llvm-commits
mailing list