X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=c%CE%BBash%2FCLasH%2FNormalize.hs;h=cf33b7bb3d9aab751eb071db017975c35e7bb04d;hb=9a75989431be8c2188283c9dff0c105dabb84420;hp=89b5a8118691d99d9eb63077be7f761734478146;hpb=330fbf11dfb1f0aee6347624455c386aa30a770a;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git "a/c\316\273ash/CLasH/Normalize.hs" "b/c\316\273ash/CLasH/Normalize.hs" index 89b5a81..cf33b7b 100644 --- "a/c\316\273ash/CLasH/Normalize.hs" +++ "b/c\316\273ash/CLasH/Normalize.hs" @@ -353,7 +353,7 @@ inlinenonreptop = everywhere ("inlinenonrep", inlinebind ((Monad.liftM not) . is -- By not inlining any other reference, we also prevent looping problems -- with funextract and inlinedict. inlinetoplevel, inlinetopleveltop :: Transform -inlinetoplevel (LetBinding:_) expr = +inlinetoplevel (LetBinding:_) expr | not (is_fun expr) = case collectArgs expr of (Var f, args) -> do body_maybe <- needsInline f