Skip to content
Snippets Groups Projects
Commit f9333dce authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Short-circuit expand_subst if no subst rules

parent 8ace0803
No related branches found
No related tags found
No related merge requests found
......@@ -460,6 +460,9 @@ def assignment_to_subst(kernel, lhs_name, extra_arguments=(), within=None,
# {{{ expand_subst
def expand_subst(kernel, within=None):
if not kernel.substitutions:
return kernel
logger.debug("%s: expand subst" % kernel.name)
from loopy.symbolic import RuleAwareSubstitutionRuleExpander
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment