[Git][ghc/ghc][master] sizeExpr: Improve Tick handling.

Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: b10296a9 by Andreas Klebinger at 2025-09-26T10:37:11-04:00 sizeExpr: Improve Tick handling. When determining if we scrutinize a function argument we now properly look through ticks. Fixes #26444. - - - - - 1 changed file: - compiler/GHC/Core/Unfold.hs Changes: ===================================== compiler/GHC/Core/Unfold.hs ===================================== @@ -637,6 +637,7 @@ sizeExpr opts !bOMB_OUT_SIZE top_args expr where is_top_arg (Var v) | v `elem` top_args = Just v is_top_arg (Cast e _) = is_top_arg e + is_top_arg (Tick _t e) = is_top_arg e is_top_arg _ = Nothing where View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b10296a90794d7182ec0c73b053c7751... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b10296a90794d7182ec0c73b053c7751... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)