Revert "remove unsafe-math-optimizations"

This reverts commit ce09d08bbceba43f28afc91db8f2784220dcd981.