mirror of
https://github.com/grin-compiler/grin.git
synced 2024-11-20 13:09:57 +03:00
Remove outdated comments
This commit is contained in:
parent
272086b1b7
commit
a9a92bb0f0
@ -28,8 +28,8 @@ constantPropagation e = ana builder (mempty, e) where
|
||||
|
||||
builder :: (Env, Exp) -> ExpF (Env, Exp)
|
||||
builder (env, exp) = case exp of
|
||||
ECase scrut alts -> -- val ~ scrut
|
||||
let constVal = getValue scrut env -- error "substValsVal env val"
|
||||
ECase scrut alts ->
|
||||
let constVal = getValue scrut env
|
||||
known = isKnown constVal || Map.member scrut env
|
||||
matchingAlts = [alt | alt@(Alt cpat name body) <- alts, match cpat constVal]
|
||||
defaultAlts = [alt | alt@(Alt DefaultPat name body) <- alts]
|
||||
|
Loading…
Reference in New Issue
Block a user