[Git][ghc/ghc][master] compiler: remove ArchWasm32 special case in cmmDoCmmSwitchPlans
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Fri May 31 10:11:33 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
bf0737c0 by Cheng Shao at 2024-05-31T06:10:33-04:00
compiler: remove ArchWasm32 special case in cmmDoCmmSwitchPlans
This patch removes special consideration for ArchWasm32 in
cmmDoCmmSwitchPlans, which means the compiler will now disable
cmmImplementSwitchPlans for wasm unreg backend, just like unreg
backend of other targets. We enabled it in the past to workaround some
compile-time panic in older versions of LLVM, but those panics are no
longer present, hence no need to keep this workaround.
- - - - -
1 changed file:
- compiler/GHC/Driver/Config/Cmm.hs
Changes:
=====================================
compiler/GHC/Driver/Config/Cmm.hs
=====================================
@@ -22,7 +22,6 @@ initCmmConfig dflags = CmmConfig
, cmmGenStackUnwindInstr = debugLevel dflags > 0
, cmmExternalDynamicRefs = gopt Opt_ExternalDynamicRefs dflags
, cmmDoCmmSwitchPlans = not (backendHasNativeSwitch (backend dflags))
- || platformArch platform == ArchWasm32
, cmmSplitProcPoints = not (backendSupportsUnsplitProcPoints (backend dflags))
|| not (platformTablesNextToCode platform)
|| usingInconsistentPicReg
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/bf0737c0b86a36ccc5523582dea6979e020fb547
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/bf0737c0b86a36ccc5523582dea6979e020fb547
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/20240531/dd03afd1/attachment.html>
More information about the ghc-commits
mailing list