Optimize compilation of or.