Pass MSSAU to makeLoopInvariant in order to properly update MSSA.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks for this!
Just a general style nit, and LGTM
lib/Transforms/Scalar/LoopUnswitch.cpp | ||
---|---|---|
424 ↗ | (On Diff #219816) | nit: generally unique_ptr<T>& is only used when you want to update what the unique_ptr itself is pointing to. if you just want to use *MSSAU from the function, please pass it as a MemorySSAUpdater & (or MemorySSAUpdater * if it's potentially null) |
506 ↗ | (On Diff #219816) | same nit |