When GVN propagates an equality by replacing one value with another it also needs to invalidate the cached information for the value being replaced.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The testcase is a bit suspect; see https://bugs.llvm.org/show_bug.cgi?id=35229, I guess. Could probably use a better comment, at least.
Comment Actions
I've adjusted the comment in the test case. I'm pretty sure that the part that the test is testing (that PRE is happening) is correct even if the equality propagation didn't happen, as it's based on knowing that the value of two pointers differs by a nonzero value and not anything to do with the provenance of the pointers.