Ideally passes should not need to pass MSSA around and do all updates through the updater.
Add convenience APIs to help with that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM after two nits are addressed. Thank you!
include/llvm/Analysis/MemorySSAUpdater.h | ||
---|---|---|
144 ↗ | (On Diff #151973) | nit: const Instruction *. (const MemoryAccess * above might/might not make sense, but here it seems trivially correct) |
150 ↗ | (On Diff #151973) | As discussed offline, it probably makes the most sense here to just make make a getMemorySSA(), rather than having dumpMemorySSA()/verifyMemorySSA()/... wrappers (Whether getMemorySSA returns a const MemorySSA * or MemorySSA * is up to you; I'm happy either way). |