OSDN Git Service

[OptDiag] Updating Remarks in SampleProfile
authorEli Friedman <efriedma@codeaurora.org>
Fri, 11 Aug 2017 21:12:04 +0000 (21:12 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Fri, 11 Aug 2017 21:12:04 +0000 (21:12 +0000)
commitf524386039f3808e5689a3da79e57fe6d0d12aa6
treeb39789848472c78ffba01293e47358a4c8a7acd8
parent668a56d09e7f1e206bd2599b3dcabee26a47099c
[OptDiag] Updating Remarks in SampleProfile

Updating remark API to newer OptimizationDiagnosticInfo API. This
allows remarks to show up in diagnostic yaml file, and enables use
of opt-viewer tool.

Hotness information for remarks (L505 and L751) do not display hotness
information, most likely due to profile information not being
propagated yet. Unsure if this is the desired outcome.

Patch by Tarun Rajendran.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310763 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
include/llvm/Transforms/Instrumentation.h
lib/IR/DiagnosticInfo.cpp
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/cov-zero-samples.ll
test/Transforms/SampleProfile/inline-coverage.ll
test/Transforms/SampleProfile/remarks.ll