1. A method comprising: receiving a select statement of a code segment in a compiler; determining whether a plurality of compile-time constants are present in the select statement and a selected one of the plurality of compile-time constants is a single-bit value, and whether a pair of relational expressions including a value present in the select statement can be predetermined; if so, selecting a first transformation or a second transformation based on compile-time evaluated values of at least some of the plurality of compile-time constants of the select statement; performing the selected transformation to obtain at least one new statement; replacing the select statement with the at least one new statement and storing the code segment including the at least one new statement in a storage.