Fix bug in MemoryDependence [and thus GVN] for invariant group
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The test needs to be simplified, remove malloc and print, all geps and bitcasts, metadata, flags, ... everything except the store %p, %p_ptr and the load %p.
Explain in the commit message what the patch does, sure it fixes an error, but what error, e.g., a store is only invariant to a load if the pointer operands are the same.
Other than that, the logic is sound and fixes the problem.