GBE: fixed a register liveness bug for getsamplerinfo instrution.
authorZhigang Gong <zhigang.gong@intel.com>
Wed, 15 Jan 2014 07:26:07 +0000 (15:26 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 17 Jan 2014 06:27:23 +0000 (14:27 +0800)
commite01556dd9532a90dcd49d1237e99b5099a1305e9
treebeca26dac3fda31823ef07c7da2561bf378ef800
parent48f8e5b1d27436c771175f7d407125c41f00171f
GBE: fixed a register liveness bug for getsamplerinfo instrution.

The previous implementation insert the ocl::samplerinfo to the
instruction after the liveness calculation stage, so the liveness
information is not correct for that register and may cause some
test cases fails. Now fix it.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
backend/src/backend/context.cpp
backend/src/backend/gen_insn_selection.cpp
backend/src/ir/instruction.cpp
backend/src/ir/instruction.hpp
backend/src/llvm/llvm_gen_backend.cpp