Skip to content
Snippets Groups Projects

Eliminate branches: implement isl analysis and recurse into conditionals

Merged Daniel Bauer requested to merge hyteg/pystencils:bauerd/isl into backend-rework
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -47,6 +47,9 @@ class EliminateBranches:
@@ -47,6 +47,9 @@ class EliminateBranches:
This pass will attempt to evaluate branch conditions within their context in the AST, and replace
This pass will attempt to evaluate branch conditions within their context in the AST, and replace
conditionals by either their then- or their else-block if the branch is unequivocal.
conditionals by either their then- or their else-block if the branch is unequivocal.
 
 
If islpy is installed, this pass will incorporate information about the iteration regions
 
of enclosing loops and enclosing conditionals into its analysis.
"""
"""
def __init__(self, ctx: KernelCreationContext) -> None:
def __init__(self, ctx: KernelCreationContext) -> None:
Loading