[LLVMdev] ifconversion before register allocation

Andrew Trick atrick at apple.com
Wed Feb 12 16:29:52 PST 2014


On Feb 12, 2014, at 3:38 PM, mahdi hamzeh <mahdy.hamzeh at gmail.com> wrote:

> Hi all,
> 
> I am using llvm backend to generate binary for a specific accelerator. I would like to convert instructions into predicated form when instructions are still in SSA form. It looks like that ifconversion execution flow is different when instructions are in SSA form. However, I am encountering many problems (specially with registers) when I use it before register allocation. I was wondering if anybody could confirm that if-conversion can be used before register allocation? Any suggestion is really appreciated.

EarlyIfConverter is the pass designed to run before RA. It is not enabled by default. It is quite different from the post-ra if-converter. It works on SSA and does not actually predicate instructions. It generates CMOVs.
—Andy

> 
> Thanks
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list