Commit df4244d8 by Zachary Snow

more aggressive expression simplification

parent 9036bbab
......@@ -73,6 +73,8 @@ convertExpr info (Mux cc aa bb) =
after = simplify before
convertExpr _ (other @ Repeat{}) = traverseNestedExprs simplify other
convertExpr _ (other @ Concat{}) = simplify other
convertExpr _ (other @ BinOp{}) = simplify other
convertExpr _ (other @ UniOp{}) = simplify other
convertExpr _ other = other
substitute :: Info -> Expr -> Expr
......
......@@ -171,6 +171,7 @@ readNumber n =
readMaybe n' :: Maybe Int
where
n' = case n of
'3' : '2' : '\'' : 'd' : rest -> rest
'\'' : 'd' : rest -> rest
_ -> n
......
Markdown is supported
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