Changes between Version 10 and Version 11 of compiler/carchitecture


Ignore:
Timestamp:
Mar 15, 2010, 11:46:23 AM (9 years ago)
Author:
eamiri
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • compiler/carchitecture

    v10 v11  
    5454(Question: Can we move this pass forward and backward among compilation passes?)
    5555
     56== Code Simplification ==
     57This pass simplifies the code as follows. This pass must be after normalize pass, so the code is in three address form at this point.
     58
     59For one basic block the following is done:[[BR]]
     60  1 - Simplify RHS of each line of code. (RHS has one operation. So this step basically is useful is one of the variables involved has a constant value, for example due to optimization.) [[BR]]
     61  2- Propagate copies and constants. If RHS of any assignment statement changes then return to step 1. (Question: There is a difference in handling NOT. Is it necessary? look at the comment in the code.)
     62
     63