Skip to content
Snippets Groups Projects
Commit 51a47fb7 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix: remove wrong int division in constant folding

parent 21d32723
No related branches found
No related tags found
No related merge requests found
Pipeline #63847 failed
...@@ -212,7 +212,9 @@ class EliminateConstants: ...@@ -212,7 +212,9 @@ class EliminateConstants:
) )
elif isinstance(expr, PsDiv): elif isinstance(expr, PsDiv):
if isinstance(dtype, PsIntegerType): if isinstance(dtype, PsIntegerType):
folded = PsConstant(v1 // v2, dtype) pass
# TODO: C integer division!
# folded = PsConstant(v1 // v2, dtype)
elif isinstance(dtype, PsIeeeFloatType): elif isinstance(dtype, PsIeeeFloatType):
folded = PsConstant(v1 / v2, dtype) folded = PsConstant(v1 / v2, dtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment