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
- Build Status
Buildable 19479 Build 19479: arc lint + arc unit
Event Timeline
Comment Actions
LGTM after two nits are addressed. Thank you!
include/llvm/Analysis/MemorySSAUpdater.h | ||
---|---|---|
144 | nit: const Instruction *. (const MemoryAccess * above might/might not make sense, but here it seems trivially correct) | |
150 | 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). |
nit: const Instruction *. (const MemoryAccess * above might/might not make sense, but here it seems trivially correct)