otherwise kernel/test_rotate hangs on avx512 capable cpus
all other llvm releases work fine without this setting
(this partially reverts
459d0bb5241a62af3b5b607a65dcf5e9a34a01ee)
fixes: #915
Gbp-Pq: Name 0099-restore-setting-unroll-threshold-on-LLVM-9.patch
assert(O && "could not find LLVM option 'debug'");
O->addOccurrence(1, StringRef("debug"), StringRef("true"), false);
}
+#if LLVM_MAJOR == 9
+ O = opts["unroll-threshold"];
+ assert(O && "could not find LLVM option 'unroll-threshold'");
+ O->addOccurrence(1, StringRef("unroll-threshold"), StringRef("1"), false);
+#endif
}
}