Previous: , Up: Optimizing Prefix Unary Operators   [Index]


3.7.2.3 Toggle Operator Pair Kill

The optimization removes the toggle transform operator extra pair occurrences. The toggle transform is (here) the transform that once applied moves data to a domain for which the transform is the reversal transform.

The struct x1f4_operator_type operator definition is to include the X1f4_E4_MISS_PAIR bit in its flags bits list field.

See struct x1f4_operator_type.

See Prefix Unary Operator Flags.

It applies for such operators as the C unary ‘!’.

The optimization transforms expressions like:

!e
!!e
!!!e
!!!!e

into:

!e
!!e
!e or !!!e
!!e