Changeset 941 for proto/Compiler


Ignore:
Timestamp:
Mar 11, 2011, 5:32:26 PM (9 years ago)
Author:
cameron
Message:

Modify while conditions for final blocks with EOF_mask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r939 r941  
    265265    return ast.If(new_test, ifNode.body, new_else_part)
    266266  def visit_While(self, whileNode):
     267    if self.carryout == '':
     268      whileNode.test.args[0] = mkCall("simd_and", [whileNode.test.args[0], ast.Name('EOF_mask', ast.Load())])
    267269    carry_base = self.current_carry
    268270    carries = CarryCounter().count(whileNode)
Note: See TracChangeset for help on using the changeset viewer.