Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Operands   [Contents][Index]


11.6.3 Conditional Expressions

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.


[8]ページ先頭

©2009-2026 Movatter.jp