[Beignet] [PATCH] GBE: Fix memdep-block-scan-limit caused bug on LLVM3.8

Xiuli Pan xiuli.pan at intel.com
Fri Jan 6 07:45:23 UTC 2017


From: Pan Xiuli <xiuli.pan at intel.com>

Option memdep-block-scan-limit is added in LLVM3.8, and memdep block
limit is set on LLVM3.7. As we can not change the limit with LLVM3.7
there will still some bugs with LLVM3.7 if the limit was hint.

Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
 backend/src/backend/program.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
index c91e13f..85d0aa9 100644
--- a/backend/src/backend/program.cpp
+++ b/backend/src/backend/program.cpp
@@ -667,7 +667,7 @@ namespace gbe {
     // The ParseCommandLineOptions used for mllvm args can not be used with multithread
     // and GVN now have a 100 inst limit on block scan. Now only pass a bigger limit
     // for each context only once, this can also fix multithread bug.
-#if LLVM_VERSION_MINOR >= 9
+#if LLVM_VERSION_MINOR >= 8
     static bool ifsetllvm = false;
     if(!ifsetllvm) {
       args.push_back("-mllvm");
-- 
2.7.4



More information about the Beignet mailing list