Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-2801

Rewrite rule to remove (par)for-loops over empty sequences

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Done
    • None
    • SystemDS 2.1
    • Compiler
    • None

    Description

      Sometimes, a (par)for-loop can be known to not have a single iteration. In these cases, the program structure could be simplified by removing the loop altogether. This is a short example:

      for(i in seq(1, 0, 1)) {
          print(i);
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pdamme Patrick Damme
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: