OSDN Git Service

[GVN] Basic optimization remark support
authorAdam Nemet <anemet@apple.com>
Thu, 1 Dec 2016 16:40:32 +0000 (16:40 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 1 Dec 2016 16:40:32 +0000 (16:40 +0000)
commitd53651aca3e2e4714979ad8254964b395ce1d5ab
tree5500b22cfa34360cd969af58f1e2c15c89dfdf12
parentd9c0875e6d7982b6250ad700ca79f95cd55bc9b4
[GVN] Basic optimization remark support

[recommitting after the fix in r288307]

Follow-on patches will add more interesting cases.

The goal of this patch-set is to get the GVN messages printed in
opt-viewer from Dhrystone as was presented in my Dev Meeting talk.  This
is the optimization view for the function (the last remark in the
function has a bug which is fixed in this series):
http://lab.llvm.org:8080/artifacts/opt-view_test-suite/build/SingleSource/Benchmarks/Dhrystone/CMakeFiles/dry.dir/html/_org_test-suite_SingleSource_Benchmarks_Dhrystone_dry.c.html#L430

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288370 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
include/llvm/Transforms/Scalar/GVN.h
lib/IR/DiagnosticInfo.cpp
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/opt-remarks.ll [new file with mode: 0644]