public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/intel-igc] f43: Add patch for LLVM15 segfault
@ 2026-06-10 16:19 Androniychuk, Pavel
  0 siblings, 0 replies; only message in thread
From: Androniychuk, Pavel @ 2026-06-10 16:19 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/intel-igc
Branch : f43
Commit : 96faceb1cb090c9902af4593cb8482b5fec8c109
Author : Androniychuk, Pavel <pavel.androniychuk@intel.com>
Date   : 2026-06-09T10:12:29-07:00
Stats  : +32/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/intel-igc/c/96faceb1cb090c9902af4593cb8482b5fec8c109?branch=f43

Log:
Add patch for LLVM15 segfault

---
diff --git a/0001-Fix-segfault-when-running-analysis-passes-after-SCCP.patch b/0001-Fix-segfault-when-running-analysis-passes-after-SCCP.patch
new file mode 100644
index 0000000..a65c808
--- /dev/null
+++ b/0001-Fix-segfault-when-running-analysis-passes-after-SCCP.patch
@@ -0,0 +1,30 @@
+From 4f7d1904031875fa5e8ed5d5b0d1e487bcc9b7b6 Mon Sep 17 00:00:00 2001
+From: Michal Paszkowski <michal.paszkowski@intel.com>
+Date: Fri, 5 Jun 2026 07:08:33 +0000
+Subject: [PATCH]  Fix segfault when running analysis passes after SCCP
+
+SCCPLegacyPassWrapper runs new PM SCCPPass, which can change CFG and delete
+basic blocks. The wrapper incorrectly declared DominatorTreeWrapperPass as
+preserved without updating the legacy PM DomTree, leaving stale DomTree nodes
+that could reference freed BBs and crash later loop analyses.
+
+Fix by removing DomTree preservation in the SCCP wrapper so DT is invalidated
+and recomputed when required.
+---
+ IGC/WrapperLLVM/lib/llvmWrapper/Transforms/Scalar/SCCP.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/IGC/WrapperLLVM/lib/llvmWrapper/Transforms/Scalar/SCCP.cpp b/IGC/WrapperLLVM/lib/llvmWrapper/Transforms/Scalar/SCCP.cpp
+index e1bf620380b3..b08854ef0de5 100644
+--- a/IGC/WrapperLLVM/lib/llvmWrapper/Transforms/Scalar/SCCP.cpp
++++ b/IGC/WrapperLLVM/lib/llvmWrapper/Transforms/Scalar/SCCP.cpp
+@@ -38,7 +38,6 @@ bool SCCPLegacyPassWrapper::runOnFunction(Function &F) {
+ void SCCPLegacyPassWrapper::getAnalysisUsage(AnalysisUsage &AU) const {
+   AU.addRequired<TargetLibraryInfoWrapperPass>();
+   AU.addPreserved<GlobalsAAWrapperPass>();
+-  AU.addPreserved<DominatorTreeWrapperPass>();
+ }
+
+ char SCCPLegacyPassWrapper::ID = 0;
+--
+2.43.0

diff --git a/intel-igc.spec b/intel-igc.spec
index 68e1aea..6299ba5 100644
--- a/intel-igc.spec
+++ b/intel-igc.spec
@@ -48,6 +48,8 @@ Source5: https://github.com/KhronosGroup/SPIRV-Tools/archive/%{spirv_tools_commi
 Source6: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-%{llvm_ver}.tar.gz
 %endif
 
+Patch0: 0001-Fix-segfault-when-running-analysis-passes-after-SCCP.patch
+
 # This is just for Intel GPUs
 ExclusiveArch:  x86_64
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-10 16:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10 16:19 [rpms/intel-igc] f43: Add patch for LLVM15 segfault Androniychuk, Pavel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox