[Git][ghc/ghc][wip/romes/ncg-perf] ncg: Don't execute dwarfGen for SDoc unnecessarily
Rodrigo Mesquita (@alt-romes)
gitlab at gitlab.haskell.org
Wed Jul 10 14:39:13 UTC 2024
Rodrigo Mesquita pushed to branch wip/romes/ncg-perf at Glasgow Haskell Compiler / GHC
Commits:
e051a138 by Rodrigo Mesquita at 2024-07-10T15:38:58+01:00
ncg: Don't execute dwarfGen for SDoc unnecessarily
`dwarfGen @SDoc` is only needed if -ddump-asm is enabled (see emitNativeCode).
- - - - -
1 changed file:
- compiler/GHC/CmmToAsm.hs
Changes:
=====================================
compiler/GHC/CmmToAsm.hs
=====================================
@@ -234,7 +234,8 @@ finishNativeGen logger config modLoc bufh us ngs
else do
compPath <- getCurrentDirectory
let (dwarf_h, us') = dwarfGen compPath config modLoc us (ngs_debug ngs)
- (dwarf_s, _) = dwarfGen compPath config modLoc us (ngs_debug ngs)
+ -- `dwarfGen @SDoc` is only needed if -ddump-asm is enabled (see emitNativeCode)
+ ~(dwarf_s, _) = dwarfGen compPath config modLoc us (ngs_debug ngs)
emitNativeCode logger config bufh dwarf_h dwarf_s
return us'
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e051a1385d727e3fbafa39ac9b4cd13c508a5fde
--
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e051a1385d727e3fbafa39ac9b4cd13c508a5fde
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/20240710/868d47f9/attachment.html>
More information about the ghc-commits
mailing list