From 6b652f9ff6adccd81d657b58365db28c48e9de40 Mon Sep 17 00:00:00 2001 From: Yang Rong Date: Mon, 29 Sep 2014 13:38:34 +0800 Subject: [PATCH] BDW: BDW don't need add slm offset, remove it. Signed-off-by: Yang Rong Reviewed-by: Zhigang Gong Reviewed-by: Junyan He --- backend/src/backend/gen8_context.cpp | 15 ++------------- backend/src/backend/gen_insn_selection.cpp | 1 - 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/backend/src/backend/gen8_context.cpp b/backend/src/backend/gen8_context.cpp index e6e0b51..663ee52 100644 --- a/backend/src/backend/gen8_context.cpp +++ b/backend/src/backend/gen8_context.cpp @@ -36,22 +36,11 @@ 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){ diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp index dc10fa4..8e76ce8 100644 --- a/backend/src/backend/gen_insn_selection.cpp +++ b/backend/src/backend/gen_insn_selection.cpp @@ -1672,7 +1672,6 @@ namespace gbe } Selection8::Selection8(GenContext &ctx) : Selection(ctx) { - this->opaque->setPatchSLMAddr(true); this->opaque->setHas32X32Mul(true); } -- 2.7.4