compiler: avoid excessive checks