Next:Logical Operators, Previous:Compound Lvalues, Up:Operands [Contents][Index]
A C?: expression is converted into anif statement witheach branch assigning to the same temporary. So,
a = b ? c : d;
becomes
if (b == 1) T1 = c;else T1 = d;a = T1;
The GIMPLE level if-conversion pass re-introduces?:expression, if appropriate. It is used to vectorize loops withconditions using vector conditional operations.
Note that in GIMPLE,if statements are represented usingGIMPLE_COND, as described below.