[LLVMdev] Instcombine increases the number of instructions?

Duncan Sands baldrick at free.fr
Wed Jun 27 00:57:33 PDT 2012


Hi Rafael,

> Can  the Instcombine pass  increase the number of instructions of a block?

while it usually doesn't, in theory it can increase the number of LLVM IR
instructions.  I don't recall an example off the top of my head, but the
usual situation is that replacing some instruction I with a pair J, K
results in better code generation.  There are a small number of cases like
this.

Ciao, Duncan.



More information about the llvm-dev mailing list