[PATCH] D143129: [GVN] Restrict equality propagation for pointers

Usman Nadeem via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 7 10:58:55 PDT 2023


mnadeem updated this revision to Diff 511731.
mnadeem added a comment.

Added an exception for constant dereferenceable pointers.

Instead of passing the DL around, I am trying to get it from the value, let me know if it looks okay.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143129/new/

https://reviews.llvm.org/D143129

Files:
  llvm/include/llvm/Analysis/Loads.h
  llvm/include/llvm/Transforms/Utils/Local.h
  llvm/lib/Analysis/Loads.cpp
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/Transforms/GVN/condprop.ll
  llvm/unittests/Analysis/LoadsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143129.511731.patch
Type: text/x-patch
Size: 19228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230407/a143aa0a/attachment.bin>


More information about the llvm-commits mailing list