[SYSTEMDS-2801] New rewrite for removing (par)for loops w/o iterations

This commit adds a new StatementBlockRewriteRule removing (par)for-loops
which are known to iterate over an empty sequence, and, thus, will not
perform a single iteration. This works if the loop's from, to, and
increment are constants (possibly DML script arguments, and after
constant folding). Furthermore, OptimizerUtils has a new flag
determining whether this rule shall be applied. In ProgramRewriter's
default rule sequence, this new rule is inserted directly after the
removal of unnecessary branches, since they have a lot in common.
Merging subsequent blocks is done once afterwards if any of removing
unnecessary branches or removing (par)for-loops shall be applied.

Closes #1165.
10 files changed
tree: b03e700fbf827beafa843b8438688807ebdfb052
  1. .github/
  2. bin/
  3. conf/
  4. dev/
  5. docker/
  6. docs/
  7. notebooks/
  8. scripts/
  9. src/
  10. .gitattributes
  11. .gitignore
  12. .gitmodules
  13. CONTRIBUTING.md
  14. LICENSE
  15. NOTICE
  16. pom.xml
  17. README.md
README.md

Apache SystemDS

Overview: SystemDS is a versatile system for the end-to-end data science lifecycle from data integration, cleaning, and feature engineering, over efficient, local and distributed ML model training, to deployment and serving. To this end, we aim to provide a stack of declarative languages with R-like syntax for (1) the different tasks of the data-science lifecycle, and (2) users with different expertise. These high-level scripts are compiled into hybrid execution plans of local, in-memory CPU and GPU operations, as well as distributed operations on Apache Spark. In contrast to existing systems - that either provide homogeneous tensors or 2D Datasets - and in order to serve the entire data science lifecycle, the underlying data model are DataTensors, i.e., tensors (multi-dimensional arrays) whose first dimension may have a heterogeneous and nested schema.

Quick Start Install, Quick Start and Hello World

Documentation: SystemDS Documentation

Python Documentation Python SystemDS Documentation

Issue Tracker Jira Dashboard

Status and Build: SystemDS is renamed from SystemML which is an Apache Top Level Project. To build from source visit SystemDS Install from source

Build Documentation Component Test Application Test Function Test Python Test Federated Python Test