3 ms·
IIRC, Rust did have this optimization (or LLVM was doing it), but then there was a version bump or change in IR that disabled it and it wasn't trivial to fix.
by nemothekid 6y ago
IIRC, Rust did have this optimization (or LLVM was doing it), but then there was a version bump or change in IR that disabled it and it wasn't trivial to fix.
- staticassertion 6y agoThere should be an optimization pass for this, certainly, but the placement new syntax guarantees it.