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

Fix CSE error message in expr codegen.

parent a9606c7f
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,8 @@ class LoopyCCodeMapper(CCodeMapper):
return self.copy(var_subst_map=var_subst_map)
def map_common_subexpression(self, expr, prec):
raise RuntimeError("common subexpressions are not allowed in loopy")
raise RuntimeError("common subexpression should have been eliminated upon "
"entry to loopy")
def map_variable(self, expr, prec):
if expr.name in self.var_subst_map:
......
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