[PATCH] D26490: [GVN, OptDiag] Print the interesting instructions involved in missed load-elimination

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


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

This includes the intervening store and the load that we're trying to
forward from in the optimization remark for the missed load elimination.

This is hooked up under a new mode in ORE that allows for compile-time
budges for a bit more analysis to print more insightful messages.  This
mode is currently enabled for -fsave-optimization-record (-Rpass is
trickier since it is controlled in the front-end).

With this we can now print the red remark in 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#L446


https://reviews.llvm.org/D26490

Files:
  include/llvm/Analysis/OptimizationDiagnosticInfo.h
  lib/Transforms/Scalar/GVN.cpp
  test/Transforms/GVN/opt-remarks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26490.77444.patch
Type: text/x-patch
Size: 5344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161110/9a720c75/attachment.bin>


More information about the llvm-commits mailing list