From: Edward Z. Yang Date: Fri, 25 Mar 2011 12:01:08 +0000 (+0000) Subject: Ignore comments when inlining. X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=bf5882d264ddef5a0bdac5495a7900f009c8cbcf Ignore comments when inlining. --- diff --git a/compiler/cmm/CmmOpt.hs b/compiler/cmm/CmmOpt.hs index df0555f..0dec26d 100644 --- a/compiler/cmm/CmmOpt.hs +++ b/compiler/cmm/CmmOpt.hs @@ -142,6 +142,7 @@ lookForInline u expr (stmt : rest) -- single-assignment. ok_to_skip = case stmt of CmmNop -> True + CmmComment{} -> True CmmAssign (CmmLocal (LocalReg u' _)) rhs | u' /= u -> True CmmAssign g@(CmmGlobal _) rhs -> not (g `regUsedIn` expr) _other -> False