Skip to content

Commit

Permalink
compiler: Bypass Wildcards in SSA lowering
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini authored and mloubout committed Aug 2, 2022
1 parent c18a698 commit f8380b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devito/passes/clusters/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from devito.symbolics import uxreplace
from devito.types import Symbol
from devito.types import Symbol, Wildcard

__all__ = ['makeit_ssa']

Expand All @@ -11,7 +11,8 @@ def makeit_ssa(exprs):
# Identify recurring LHSs
seen = {}
for i, e in enumerate(exprs):
seen.setdefault(e.lhs, []).append(i)
if not isinstance(e.lhs, Wildcard):
seen.setdefault(e.lhs, []).append(i)
# Optimization: don't waste time reconstructing stuff if already in SSA form
if all(len(i) == 1 for i in seen.values()):
return exprs
Expand Down

0 comments on commit f8380b6

Please sign in to comment.