Add FIXME and TODO

This commit is contained in:
Sei Lisa 2019-10-11 19:38:05 +02:00
parent c02998518a
commit 980b588986

View file

@ -1276,9 +1276,11 @@ class foldconst(object):
if self.CompareTrees(child[0], child[1]):
# expr == expr -> 1
# FIXME: not true if NaN
parent[index] = nr(nt='CONST', t='integer', value=1,
SEF=True)
return
# TODO: Simplify if ((x & y) == y) for constant y to if (!(~x & y))
return
if nt in ('<=', '>=') or nt == '!=' and child[0].t != 'list':