summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-07-25 09:04:07 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-07-25 09:04:07 +0000
commit4c008a26e440b17c2164acffd17b1150dfb9ba1b (patch)
tree43fc1ec916e04126c72462ca9b9480220bfe999c
parent80c41f8d6d1ed41a36326ab488200d1d78f3beac (diff)
Pass no-verify-fixpoint option to instcombine in LLVM 18
From Nikita Popov 99f0449987bec1f82cd42a06f40bb4a863a37792 in mainline Mesa
-rw-r--r--lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c b/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c
index ea8a22f70..1ee250523 100644
--- a/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c
+++ b/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c
@@ -613,7 +613,11 @@ gallivm_compile_module(struct gallivm_state *gallivm)
LLVMRunPasses(gallivm->module, passes, LLVMGetExecutionEngineTargetMachine(gallivm->engine), opts);
if (!(gallivm_perf & GALLIVM_PERF_NO_OPT))
+#if LLVM_VERSION_MAJOR >= 18
+ strcpy(passes, "sroa,early-cse,simplifycfg,reassociate,mem2reg,instsimplify,instcombine<no-verify-fixpoint>");
+#else
strcpy(passes, "sroa,early-cse,simplifycfg,reassociate,mem2reg,instsimplify,instcombine");
+#endif
else
strcpy(passes, "mem2reg");