Generalise (x | 1)
optimization to larger bitsize types
#6805
Labels
good first issue
Good for newcomers
(x | 1)
optimization to larger bitsize types
#6805
This optimization is just a special case of
x | (2^(N) -1) as uN
for a bitsizeN
. While the boolean case is more common to occur we should also handle the others.This is considered relatively low-priority as it's much less likely to trigger in usual scenarios.
The text was updated successfully, but these errors were encountered: