[PATCH] D47143: [InstrSimplify, NewGVN] Add option to ignore metadata when simplifying.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 5 09:49:58 PDT 2018


fhahn updated this revision to Diff 150002.
fhahn retitled this revision from "[NewGVN] Do not treat LoadExpressions with differing nonnull as equal." to "[InstrSimplify,NewGVN] Add option to ignore metadata when simplifying.".
fhahn edited the summary of this revision.
fhahn added a comment.

Updated to ignore metadata while simplifying with InstructionSimplify. I've updated the description with details.

It adds a very crude way to disable the use of metadata. Not sure if we want a more fine grained approach. The cosmetics of the UseMetadata handling can be improved slightly, happy to do that if the overall approach is sensible.


https://reviews.llvm.org/D47143

Files:
  include/llvm/Analysis/InstructionSimplify.h
  include/llvm/Analysis/ValueTracking.h
  lib/Analysis/InstructionSimplify.cpp
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/Scalar/NewGVN.cpp
  test/Transforms/NewGVN/metadata-simplify.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47143.150002.patch
Type: text/x-patch
Size: 18939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180605/b0a921e3/attachment-0001.bin>


More information about the llvm-commits mailing list