GBE: fixed a barrier related bug.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Tue, 2 Jul 2013 10:40:08 +0000 (18:40 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 3 Jul 2013 10:18:09 +0000 (18:18 +0800)
commit507671f5b2e5b53fffe0da5ba10d5d0a7d7f42aa
treece67ef472c1bd5dcf53006b9d5580183734a43c0
parent84f63e8670e1e0daf8d996499911500722651334
GBE: fixed a barrier related bug.

Actually, this commit fixed two bugs related to barrier.
1. We should set useSLM to true if we use barrier.
2. We need to set barrier id to the barrierMsg payload according to
r0.2. And we don't need to reprogram the barrierCount.

And after this fix, we don't need the work around for the local
memory barrier, thus we don't need the memory fence for local memory
barrier.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Zou, Nanhai <nanhai.zou@intel.com>
Reviewed-by: Yang, Rong R <rong.r.yang@intel.com>
Tested-by: Sun, Yi <yi.sun@intel.com>
backend/src/backend/gen_insn_selection.cpp
backend/src/llvm/llvm_gen_backend.cpp