Changeset 309 for proto


Ignore:
Timestamp:
Sep 20, 2009, 7:18:40 PM (10 years ago)
Author:
eamiri
Message:

Now make_SSA leaves the name of the last occurence of a variable unchanged.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/Compiler/bitstream_compiler.py

    r308 r309  
    265265                use_index = 0
    266266                def_index = 1
    267                 for current, next in pairs(st[var][0])[1:-1]:
     267                for current, next in pairs(st[var][0])[0:-2]:
    268268                        code[current].LHS = "%s_%i"%(simplify_name(var), current)
    269269                        new_vars.append("%s_%i"%(simplify_name(var), current))
Note: See TracChangeset for help on using the changeset viewer.