[Git][ghc/ghc][wip/romes/fixes-4] Apply 1 suggestion(s) to 1 file(s)
Rodrigo Mesquita (@alt-romes)
gitlab at gitlab.haskell.org
Tue May 7 14:23:51 UTC 2024
Rodrigo Mesquita pushed to branch wip/romes/fixes-4 at Glasgow Haskell Compiler / GHC
Commits:
6668042e by Andreas Klebinger at 2024-05-07T14:23:41+00:00
Apply 1 suggestion(s) to 1 file(s)
- - - - -
1 changed file:
- compiler/GHC/CmmToAsm/Monad.hs
Changes:
=====================================
compiler/GHC/CmmToAsm/Monad.hs
=====================================
@@ -85,17 +85,7 @@ data NcgImpl statics instr jumpDest = NcgImpl {
-- | Given a jump destination, if it refers to a block, return the block id of the destination.
getJumpDestBlockId :: jumpDest -> Maybe BlockId,
-- | Determine whether the given instruction is a shortcutable jump to some destination.
- -- The function is named as such because we use this predicate only in
- -- order to shortcut redundant jumps, such as a jump to @b@ in the following program:
- --
- -- @
- -- a:
- -- goto b
- -- b:
- -- goto c
- -- c:
- -- ...
- -- @
+See Note [supporting shortcutting]
canShortcut :: instr -> Maybe jumpDest,
shortcutStatics :: (BlockId -> Maybe jumpDest) -> statics -> statics,
-- | Rewrite the jump destination of a jump instruction to another
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6668042ecf9bc09554062426afa5fee6a48456bd
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6668042ecf9bc09554062426afa5fee6a48456bd
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240507/1e26982b/attachment-0001.html>
More information about the ghc-commits
mailing list