Fix a scalarize pass bug.
authorYang Rong <rong.r.yang@intel.com>
Wed, 22 May 2013 08:49:06 +0000 (16:49 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 23 May 2013 02:32:10 +0000 (10:32 +0800)
Need to clear vectors and maps after finish one function.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/llvm/llvm_scalarize.cpp

index f71401f..f7ef375 100644 (file)
@@ -798,6 +798,9 @@ namespace gbe {
 
     dce();
 
+    incompletePhis.clear();
+    vectorVals.clear();
+
     delete builder;
     builder = 0;