LLVM-IR: order of a PHI node predecessors ?

Hi all,

are there any restrictions on the order of a PHI node predecessors ?

Like following example, is this still valid LLVM-IR ?

There are no requirements regarding the ordering of PHI node arguments (i.e. block/value pairs). The code you showed is valid.

-Krzysztof