[PassTiming] reporting time-passes separately for multiple pass instances of the...
authorFedor Sergeev <fedor.sergeev@azul.com>
Tue, 4 Sep 2018 06:12:28 +0000 (06:12 +0000)
committerFedor Sergeev <fedor.sergeev@azul.com>
Tue, 4 Sep 2018 06:12:28 +0000 (06:12 +0000)
commitf2d4372e0e660720bbe4d1d266da2cf783868666
tree35be2cf36a0495319d949434bb7ab39565151f66
parent2cbba5633753552a984572c8b9a5997e5c96496d
[PassTiming] reporting time-passes separately for multiple pass instances of the same pass

Summary:
Refactoring done by rL340872 accidentally appeared to be non-NFC, changing the way how
multiple instances of the same pass are handled - aggregation of results by PassName
forced data for multiple instances to be merged together and reported as one line.

Getting back to creating/reporting timers per pass instance.
Reporting was a bit enhanced by counting pass instances and adding #<num> suffix
to the pass description. Note that it is instances that are being counted,
not invocations of them.

time-passes test updated to account for multiple passes being run.

Reviewers: paquette, jhenderson, MatzeB, skatkov

Reviewed By: skatkov

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D51535

llvm-svn: 341346
llvm/include/llvm/IR/PassTimingInfo.h
llvm/lib/IR/PassTimingInfo.cpp
llvm/test/Other/time-passes.ll