Pass MSSAU to makeLoopInvariant in order to properly update MSSA.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 38061 Build 38060: arc lint + arc unit
Event Timeline
Comment Actions
Thanks for this!
Just a general style nit, and LGTM
lib/Transforms/Scalar/LoopUnswitch.cpp | ||
---|---|---|
424 | 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 | same nit |
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)