[PATCH] D26488: [GVN] Basic optimization remark support

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 21:21:42 PST 2016


anemet created this revision.
anemet added reviewers: hfinkel, dberlin.
anemet added a subscriber: llvm-commits.
Herald added a subscriber: fhahn.

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


https://reviews.llvm.org/D26488

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26488.77442.patch
Type: text/x-patch
Size: 7679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161110/fc7b65b6/attachment.bin>


More information about the llvm-commits mailing list