I'm assuming the source service changes are acceptable, but I can resubmit with just the patches to make the build work if required. The LLVM release keys are included as a source, but they are not yet used to validate the LLVM tarball. - Update to 2.18.5 * No release changelog was made available, see upstream SCM - Implement OBS source services * LLVM source tar downloaded * All other dependencies acquired from upstream SCM * Specfile updates to this effect - Update vc_intrinsics to 0.23.4 - Update spirv_llvm_translator to 15.0.16 - Update opencl_clang to 15.0.4 - Set spirv-tools-devel > 2025.1 in order to compile - 0002-Replace-ciso646-with-version.patch * Resolves compilation failure with GCC20 - 0003-empty-check-before-vector-use.patch * Resolves null pointer exception during compilation - Disable -pie flag at linking stage * Workaround for compilation failure of static library OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/intel-graphics-compiler?expand=0&rev=45
20 lines
779 B
Diff
20 lines
779 B
Diff
diff --git a/IGC/Compiler/Optimizer/InstructionHoistingOptimization.cpp b/IGC/Compiler/Optimizer/InstructionHoistingOptimization.cpp
|
|
index 838ea8bd4..86477bdb9 100644
|
|
--- a/IGC/Compiler/Optimizer/InstructionHoistingOptimization.cpp
|
|
+++ b/IGC/Compiler/Optimizer/InstructionHoistingOptimization.cpp
|
|
@@ -149,8 +149,12 @@ private:
|
|
auto it = std::find(hoistedInstr.begin(), hoistedInstr.end(), newInstr);
|
|
return it != hoistedInstr.end();
|
|
};
|
|
-
|
|
- if (!isDuplicate(m_HoistableInstructions, hoistInstr)) {
|
|
+
|
|
+ if (!m_HoistableInstructions.empty()) {
|
|
+ if (!isDuplicate(m_HoistableInstructions, hoistInstr)) {
|
|
+ m_HoistableInstructions.push_back(hoistInstr);
|
|
+ }
|
|
+ } else {
|
|
m_HoistableInstructions.push_back(hoistInstr);
|
|
}
|
|
}
|