Fix the bug of multi deleting of load instruction in lowering
authorJunyan He <junyan.he@linux.intel.com>
Mon, 20 Jan 2014 03:28:43 +0000 (11:28 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 20 Jan 2014 07:07:03 +0000 (15:07 +0800)
commit6eadeb1b3eab8fad516beb0c8592e9b0bb5c5255
treeb54b548a883c5faa932660eb35491adf833ffdc4
parentaceba68cb03fec686219e5c79f07362656f61128
Fix the bug of multi deleting of load instruction in lowering

When the load instruction has multi-value destinations, the load
instruction in buildConstantPush function will be replaced many
times and which can cause the potential problems.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/ir/instruction.cpp
backend/src/ir/instruction.hpp
backend/src/ir/lowering.cpp