LLVM emission without PHIs (out-of-SSA)

Hi there

is it possible in clang (2.8 or 2.9 release) to generate llvm assembly (via -emit-llvm) without the use of phi statements? Is there any option either in clang or llvm core to generate llvm assembly following an out-of-SSA conversion?

Thanks in advance.

Nikolaos Kavvadias

LLVM has a reg2mem "optimization" pass, so something like this should work:
  clang -c -emit-llvm -o - | opt -reg2mem -o blah.bc