Fix a random assert caused by scalarize pass.
authorYang Rong <rong.r.yang@intel.com>
Fri, 31 May 2013 07:19:09 +0000 (15:19 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 31 May 2013 07:19:48 +0000 (15:19 +0800)
commit8866634b02d4230c723c3c9449341ee749a0e2a4
tree28f10fbdef2d9135f800028044be9ecd577f881f
parent5291e1bcbe0786bafec5373072d782ac38e3a494
Fix a random assert caused by scalarize pass.

Revome the dead values in unit.valueMap at each begin of pass to avoid
the new value have some address.
Also fix a typo

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