Add MemorySSA as a depency to LoopInstInstSimplify and preserve it.
Disabled by default until all passes preserve MemorySSA.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Scalar/LoopInstSimplify.cpp | ||
---|---|---|
80–82 ↗ | (On Diff #161279) | Can be written simpler as: MemorySSA *MSSA = MSSAU ? MSSAU->getMemorySSA() : nullptr; |
141 ↗ | (On Diff #161279) | IR seems weird as a variable name here? Maybe SimplifiedI or SimpleI? Also, does it make sense to test this before getMemoryAccess? |
200 ↗ | (On Diff #161279) | We we really want a unique_ptr instead of an Optional? |
Comment Actions
My bad, previous update won't work, updater needs to be allocated. Please comment on the use of make_unique (= operator in Optional does an std::move).
Comment Actions
Can we make MemorySSAUpdater movable? This seems likely to be a pretty common pattern...