4 ms·
> Dead store elimination now uses MemorySSA, and can eliminate dead stores across basic blocks. I thought it wasn't enabled by default in 12? I recall this bei
by adrian17 5y ago
> Dead store elimination now uses MemorySSA, and can eliminate dead stores across basic blocks.
I thought it wasn't enabled by default in 12? I recall this being said at some point.
That said, I do appreciate this change making it into Rust, as it very visibly improves how it handles moving big structs around.
- nikic 5y agoThe change you have in mind is MemorySSA-based memcpy optimization, which is indeed not enabled in LLVM 12 (but is enabled in Rust).
- adrian17 5y ago...oh, yeah, I saw "now uses MemorySSA" and immediately thought of the memcpy optimization pass, without carefully reading the entire comment - my bad.