2 ms·
Compilers are afraid to optimize around possible UB, even though they can.
by flamedoge 10y ago
Compilers are afraid to optimize around possible UB, even though they can.
- greglindahl 10y agoHaving worked with key people from the SGI compiler team, and then competed with Intel / PGI / Sun / gcc on x86, I totally disagree.
- flamedoge 10y agoI guess I should've looked when I said "Compilers". I only skimmed two and one of them is LLVM.
- flamedoge 10y agoI totally see UB as a blessing in disguise for optimizer.
- greglindahl 10y agoUsually, yeah. The art is making it debuggable, when the user accidentally strays into UB and needs help not doing that.