GBE: fixed the undefined phi value's liveness analysis.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 10 Apr 2014 06:33:48 +0000 (14:33 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 23 Apr 2014 05:58:41 +0000 (13:58 +0800)
commit21497f399ff2429e2ebb8ad240d1445b8a5b9d50
tree8a47808a164a13d9aef18415bc13cf932739ad21
parent5ac76d0069ea7cf567ec4889e6b20c4252c3b424
GBE: fixed the undefined phi value's liveness analysis.

If a phi component is undef from one of the predecessors,
we should not pass it as the predecessor's liveout registers.
Otherwise, that phi register's liveness may be extent to
the basic block zero which is not good.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
backend/src/ir/context.hpp
backend/src/ir/function.hpp
backend/src/ir/liveness.cpp
backend/src/ir/value.cpp
backend/src/llvm/llvm_gen_backend.cpp