[PATCH] D65204: [GVN] Also invalidate users of instructions replaced due to conditionals.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 05:52:48 PDT 2019


fhahn created this revision.
fhahn added reviewers: john.brawn, efriedma, hfinkel, reames.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

We also need to invalidate the users of the replaced value, as they could
be GEPs indexed by the replaced value. In that case, the cache will
contain stale information and return invalid information.

Fixes PR31651.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65204

Files:
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/test/Transforms/GVN/condprop-md-invalidation2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65204.211479.patch
Type: text/x-patch
Size: 4938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190724/fbd79287/attachment.bin>


More information about the llvm-commits mailing list