[Beignet] [PATCH] Fix a scalarize pass bug.

Yang Rong rong.r.yang at intel.com
Wed May 22 01:49:06 PDT 2013


Need to clear vectors and maps after finish one function.

Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
 backend/src/llvm/llvm_scalarize.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/backend/src/llvm/llvm_scalarize.cpp b/backend/src/llvm/llvm_scalarize.cpp
index f71401f..f7ef375 100644
--- a/backend/src/llvm/llvm_scalarize.cpp
+++ b/backend/src/llvm/llvm_scalarize.cpp
@@ -798,6 +798,9 @@ namespace gbe {
 
     dce();
 
+    incompletePhis.clear();
+    vectorVals.clear();
+
     delete builder;
     builder = 0;
 
-- 
1.7.9.5



More information about the Beignet mailing list