Rafael Parizi
2012-Jun-26 17:59 UTC
[LLVMdev] Instcombine increases the number of instructions?
Hello, Can the Instcombine pass increase the number of instructions of a block? -- *Rafael Parizi* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120626/53a8661d/attachment.html>
Duncan Sands
2012-Jun-27 07:57 UTC
[LLVMdev] Instcombine increases the number of instructions?
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.
Rafael Parizi
2012-Jun-27 13:16 UTC
[LLVMdev] Instcombine increases the number of instructions?
I perform the Instcombine pass over Rijndael benchmark from Mibench ( suite of benchmarks). For compile, I use "-Instcount" for counting the instructions. Comparing the bench without transformation with the bench transformed by instcombine, I perceived a 10% of increase in the number of instructions. This is possible? On Wed, Jun 27, 2012 at 4:57 AM, Duncan Sands <baldrick at free.fr> wrote:> 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. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- *Rafael Parizi* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120627/79d5b935/attachment.html>