[Git][haskell-team/DHG_packages][experimental] ghc: Backport patch for LLVM
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Sun Aug 20 14:32:24 BST 2023
Ilias Tsitsimpis pushed to branch experimental at Debian Haskell Group / DHG_packages
Commits:
2276c2d0 by Ilias Tsitsimpis at 2023-08-20T15:33:31+03:00
ghc: Backport patch for LLVM
- - - - -
2 changed files:
- p/ghc/debian/changelog
- p/ghc/debian/patches/newer-llvm
Changes:
=====================================
p/ghc/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+ghc (9.4.6-1~exp3) experimental; urgency=medium
+
+ * Backport upstream patch to use old pass manager in LLVM
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sun, 20 Aug 2023 15:33:14 +0300
+
ghc (9.4.6-1~exp2) experimental; urgency=medium
* Use LLVM 16
=====================================
p/ghc/debian/patches/newer-llvm
=====================================
@@ -1,13 +1,46 @@
+commit 0cc16aaf89d7dc3963764b7193ceac73e4e3329b
+Author: Matthew Pickering <matthewtpickering at gmail.com>
+Date: Mon Jan 30 10:58:12 2023 +0000
+
+ Bump supported LLVM range from 10 through 15 to 11 through 16
+
+ LLVM 15 turns on the new pass manager by default, which we have yet to
+ migrate to so for new we pass the `-enable-new-pm-0` flag in our
+ llvm-passes flag.
+
+ LLVM 11 was the first version to support the `-enable-new-pm` flag so we
+ bump the lowest supported version to 11.
+
+ Our CI jobs are using LLVM 12 so they should continue to work despite
+ this bump to the lower bound.
+
+ Fixes #21936
+
Index: b/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
-@@ -582,7 +582,7 @@ AC_SUBST(InstallNameToolCmd)
+@@ -581,8 +581,8 @@ AC_SUBST(InstallNameToolCmd)
+ # tools we are looking for. In the past, GHC supported a number of
# versions of LLVM simultaneously, but that stopped working around
# 3.5/3.6 release of LLVM.
- LlvmMinVersion=10 # inclusive
+-LlvmMinVersion=10 # inclusive
-LlvmMaxVersion=15 # not inclusive
++LlvmMinVersion=11 # inclusive
+LlvmMaxVersion=17 # not inclusive
AC_SUBST([LlvmMinVersion])
AC_SUBST([LlvmMaxVersion])
sUPPORTED_LLVM_VERSION_MIN=$(echo \($LlvmMinVersion\) | sed 's/\./,/')
+Index: b/llvm-passes
+===================================================================
+--- a/llvm-passes
++++ b/llvm-passes
+@@ -1,5 +1,5 @@
+ [
+-(0, "-mem2reg -globalopt -lower-expect"),
+-(1, "-O1 -globalopt"),
+-(2, "-O2")
++(0, "-enable-new-pm=0 -mem2reg -globalopt -lower-expect"),
++(1, "-enable-new-pm=0 -O1 -globalopt"),
++(2, "-enable-new-pm=0 -O2")
+ ]
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2276c2d0ba07bf6c905af48a228edd6e6c398dc9
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2276c2d0ba07bf6c905af48a228edd6e6c398dc9
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20230820/8ef2316b/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list