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
- Build Status
Buildable 21710 Build 21710: arc lint + arc unit
Event Timeline
lib/Transforms/Scalar/LoopInstSimplify.cpp | ||
---|---|---|
80–82 | Can be written simpler as: MemorySSA *MSSA = MSSAU ? MSSAU->getMemorySSA() : nullptr; | |
139 | IR seems weird as a variable name here? Maybe SimplifiedI or SimpleI? Also, does it make sense to test this before getMemoryAccess? | |
198 | 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...
Can be written simpler as: