[PATCH] D65204: [GVN] Also invalidate users of instructions replaced due to conditionals.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 12:34:33 PDT 2019
efriedma added a comment.
I'm not sure this fix is actually solving a real issue, as opposed to merely hiding the issue for the given testcase.
Replacing a use of an integer value with a use of an equal integer value could make alias analysis return different results, but the old result should still be correct; you haven't actually changed the alias properties of any memory operations. So reusing the result of any queries cached by MemDep should still produce a correct result (maybe an overly conservative result, but that should be okay). Or does MemDep caching not work like that for some reason?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65204/new/
https://reviews.llvm.org/D65204
More information about the llvm-commits
mailing list