bufanliu / apparat

Automatically exported from code.google.com/p/apparat
0 stars 0 forks source link

Inlining produces unnecessary local variables and assignments #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Calling an Inlined function that accepts parameters creates extra local 
variables.
After inlining new local variables are created, then the parameter values are 
assigned to the newly created variables, and then the new variables are instead 
used in the inlined code.

The new variables are not needed and the inlined code should rather use the 
original variables.

I have provided a sample which shows the problem.

NOTE : I have already posted this problem but it seemed to disappear shortly 
after being created. I don't know if there was a reason for this or if it was 
some kind of bug so a recreating it just in case.

Original issue reported on code.google.com by thecma...@gmail.com on 26 Mar 2012 at 8:18

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry for re-posting this, but I must have screwed up and somehow after 
selecting 'All issues' I was still only viewing open issues.

Original comment by thecma...@gmail.com on 26 Mar 2012 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by joaebert on 27 Mar 2012 at 6:21