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 merge requests found
Pipeline #63847 failed with stages
in 2 minutes and 57 seconds
......@@ -212,7 +212,9 @@ class EliminateConstants:
)
elif isinstance(expr, PsDiv):
if isinstance(dtype, PsIntegerType):
folded = PsConstant(v1 // v2, dtype)
pass
# TODO: C integer division!
# folded = PsConstant(v1 // v2, dtype)
elif isinstance(dtype, PsIeeeFloatType):
folded = PsConstant(v1 / v2, dtype)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment