mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Add FIXME and TODO
This commit is contained in:
parent
c02998518a
commit
980b588986
1 changed files with 2 additions and 0 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue