EarlyCSE can make IR changes that will leave MemorySSA with accesses claiming to be optimized, but for which a subsequent MemorySSA run will yield a different optimized result.
Due to relying on AA queries, we can't fix this in general, unless we recompute MemorySSA.
Adding some tests to track this and a basic verify for future potential failures.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 22512 Build 22512: arc lint + arc unit
Event Timeline
Comment Actions
LGTM, modulo one nit. Thanks!
test/Transforms/EarlyCSE/preserve_memoryssa.ll | ||
---|---|---|
2 | Can we disable this if asserts are off, since verifyMemorySSA() will do nothing without asserts? Looks like ; REQUIRES: asserts might be what we want, but I've never used it myself. |
Can we disable this if asserts are off, since verifyMemorySSA() will do nothing without asserts?
Looks like ; REQUIRES: asserts might be what we want, but I've never used it myself.