[LLVMdev] Getting rid of phi instructions?

Teemu Rinta-aho teemu.rinta-aho at nomadiclab.com
Wed Aug 31 01:06:57 PDT 2011


On 30.8.2011, at 19.19, Eli Friedman wrote:

> reg2mem won't do quite this transformation... not sure exactly what you need.

I need to get rid of phis. This code is compiled from C++ and for some functions
there are no phis, but multiple call instructions. I am targeting hardware
in the end, and the next tool reading the IR does not like phis when it's generating VHDL.
My questions may be somewhat silly from the viewpoint of software compilation for a CPU.

Thanks.

Teemu



More information about the llvm-dev mailing list