BDW: BDW don't need add slm offset, remove it.
authorYang Rong <rong.r.yang@intel.com>
Mon, 29 Sep 2014 05:38:34 +0000 (13:38 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 10 Oct 2014 08:24:49 +0000 (16:24 +0800)
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Junyan He <junyan.he@linux.intel.com>
backend/src/backend/gen8_context.cpp
backend/src/backend/gen_insn_selection.cpp

index e6e0b51..663ee52 100644 (file)
 namespace gbe
 {
   void Gen8Context::emitSLMOffset(void) {
-    if(kernel->getUseSLM() == false)
-      return;
-
-    const GenRegister slm_offset = ra->genReg(GenRegister::ud1grf(ir::ocl::slmoffset));
-    const GenRegister slm_index = GenRegister::ud1grf(0, 0);
-    //the slm index is hold in r0.0 24-27 bit, in 4K unit, shift left 12 to get byte unit
-    p->push();
-      p->curr.execWidth = 1;
-      p->curr.predicate = GEN_PREDICATE_NONE;
-      p->SHR(slm_offset, slm_index, GenRegister::immud(12));
-    p->pop();
+    return;
   }
 
   void Gen8Context::allocSLMOffsetCurbe(void) {
-    if(fn.getUseSLM())
-      allocCurbeReg(ir::ocl::slmoffset, GBE_CURBE_SLM_OFFSET);
+    return;
   }
 
   uint32_t Gen8Context::alignScratchSize(uint32_t size){
index dc10fa4..8e76ce8 100644 (file)
@@ -1672,7 +1672,6 @@ namespace gbe
   }
 
   Selection8::Selection8(GenContext &ctx) : Selection(ctx) {
-    this->opaque->setPatchSLMAddr(true);
     this->opaque->setHas32X32Mul(true);
   }