GBE: Don't modify argument 0 of the get image information instruction.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 7 Nov 2013 01:31:37 +0000 (09:31 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 7 Nov 2013 05:50:23 +0000 (13:50 +0800)
commita05ee852776bd3ee9d2c8179e576a384053cde07
treebcfa8f9a839aa3f001ec0a299c392351e80a5dfd
parent5962eb000326e24e5351ea4a9d812167f5b1ef03
GBE: Don't modify argument 0 of the get image information instruction.

When the first round compilation fail, GBE will turn to recompile the
sample program by using another profile. If we changed the argument
0 of the get image information instruction, then it will fail the second
round compilation. But the argument 1 is ok to change, as we never change
the first instruction's argument, and all the subsequent instruction's
argument 1 is free to change.

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/llvm/llvm_gen_backend.cpp