Pass --enable-assertions=no to llvm's configure, it speeds up llvm optimization passes by about 25%.