Remove newValueProxy from scalarize pass to genWriter pass.
authorYang Rong <rong.r.yang@intel.com>
Thu, 17 Oct 2013 05:36:55 +0000 (13:36 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 18 Oct 2013 04:17:59 +0000 (12:17 +0800)
commit46243e399950a0f0970aa28c4e2fcffb5f00dabb
treea15c12e0a7381468053cb4a83a1516299b07f553
parentb810dff34f4ddd87e41172a71148eb82f1fc2e6c
Remove newValueProxy from scalarize pass to genWriter pass.

If call newValueProxy in scalarize pass, the realValue maybe been deleted by
the following pass, cause assert. Move to genWriter pass, can fix this bug and
make code more clean.

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