3 ms·
Clang/llvm also does heap ellision (removing unnecessary mallocs) while gcc didn't last time I checked. I think the llvm devs allows themselves to have a more p
by hackingthenews 6y ago
Clang/llvm also does heap ellision (removing unnecessary mallocs) while gcc didn't last time I checked. I think the llvm devs allows themselves to have a more practical understanding of the cpp standard.
- BeeOnRope 6y agoWell we could check with godbolt: https://godbolt.org/z/1reM4s https://godbolt.org/z/1reM4s GCC seems to eliminate them since at least 4.7.1.
- hackingthenews 6y agoThat's fair. Here is another example where it eliminates since 5.1. https://godbolt.org/z/3oGc3P https://godbolt.org/z/3oGc3P