[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:24:15 UTC 2024



Rodrigo Mesquita pushed to branch wip/romes/fixes-4 at Glasgow Haskell Compiler / GHC


Commits:
54321d78 by Andreas Klebinger at 2024-05-07T14:23:49+00:00
Apply 1 suggestion(s) to 1 file(s)
- - - - -


1 changed file:

- compiler/GHC/CmmToAsm/Monad.hs


Changes:

=====================================
compiler/GHC/CmmToAsm/Monad.hs
=====================================
@@ -88,23 +88,12 @@ data NcgImpl statics instr jumpDest = NcgImpl {
 See Note [supporting shortcutting]
     canShortcut               :: instr -> Maybe jumpDest,
     shortcutStatics           :: (BlockId -> Maybe jumpDest) -> statics -> statics,
-    -- | Rewrite the jump destination of a jump instruction to another
+    -- | Rewrite the destination of a jump instruction to another
     -- destination, if the given function returns a new jump destination for
     -- the 'BlockId' of the original destination.
     --
-    -- For instance, if @goto b@, from the following program
-    --
-    -- @
-    -- a:
-    --  goto b
-    -- b:
-    --  goto c
-    -- c:
-    --  ...
-    -- @
-    --
-    -- is the given instruction, and the function maps @b@ to @c@,
-    -- 'shortcutJump' returns @goto c@
+    -- For instance, for a mapping @block_a -> dest_b@ and a instruction @goto block_a@ we would
+    -- rewrite the instruction to @goto dest_b@
     shortcutJump              :: (BlockId -> Maybe jumpDest) -> instr -> instr,
     -- | 'Module' is only for printing internal labels. See Note [Internal proc
     -- labels] in CLabel.



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/54321d785de2af7a23ace4f0069fa283f1134985

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/54321d785de2af7a23ace4f0069fa283f1134985
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/da9b9ba0/attachment-0001.html>


More information about the ghc-commits mailing list