BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Instruction combining #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Instruction Combining

At the source code level, combine two statements into one statement. At the IL 
(Intermediate Language) level, combine two instructions into one instruction.

Example:

In the code fragment below, the two post-increment statements can be combined 
into one statement.

int i;

void f (void)
{
  i++;
  i++;
}

The code fragment below shows the function after the two post-increment 
statements have been combined into one statement.

int i;

void f (void)
{
  i += 2;
}

Original issue reported on code.google.com by rudla.ku...@gmail.com on 2 Dec 2010 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by rudla.ku...@gmail.com on 26 Feb 2011 at 7:38