More TODO tweaking.

This commit is contained in:
Sei Lisa 2015-03-05 06:20:11 +01:00
parent 7fb345b222
commit f730843762
2 changed files with 4 additions and 5 deletions

View file

@ -193,8 +193,7 @@ class foldconst(object):
if subexpr['nt'] == 'CONST': if subexpr['nt'] == 'CONST':
node = parent[index] = subexpr node = parent[index] = subexpr
node['value'] = int(not node['value']) node['value'] = int(not node['value'])
# TODO: Missing comparison optimization # TODO: !(i>const) to i<(const+1) if no overflow (4 variants)
# !(i>const) to i<(const+1) if no overflow (4 variants)
return return
if nt == '~': if nt == '~':
@ -418,7 +417,7 @@ class foldconst(object):
# same as above, join them # same as above, join them
# FIXME: Isn't this covered by the associative sum above? # FIXME: Isn't this covered by the associative sum above?
pass # TODO: implement pass # TODO: implement const + (expr + const) or const + (const + expr)
if rnt == 'CONST': if rnt == 'CONST':
# Swap the vars to deal with const in lval always # Swap the vars to deal with const in lval always
@ -853,7 +852,7 @@ class foldconst(object):
return return
if nt == 'IF': if nt == 'IF':
# TODO: Swap IF/ELSE if both present and nonempty and cond starts with ! # TODO: Swap IF/ELSE if both present and cond starts with !
self.FoldTree(child, 0) self.FoldTree(child, 0)
self.FoldCond(child, 0) self.FoldCond(child, 0)
if child[0]['nt'] == 'CONST': if child[0]['nt'] == 'CONST':

View file

@ -597,7 +597,7 @@ def llJsonSetValue(json, lst, val):
# Recursive works best here # Recursive works best here
return InternalJsonRecursiveSetValue(json, lst, val) return InternalJsonRecursiveSetValue(json, lst, val)
return u"----unimplemented----" # TODO: Implement llJsonSetValue. return u"----unimplemented----"
''' '''
def llJsonValueType(json, lst): def llJsonValueType(json, lst):