From: Ruiling Song Date: Mon, 14 Jul 2014 09:24:37 +0000 (+0800) Subject: GBE: Use varying register to save one instruction X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=080eff26694e3dd34c99012efd5b79d8e3c176ed;p=contrib%2Fbeignet.git GBE: Use varying register to save one instruction Signed-off-by: Ruiling Song Reviewed-by: Zhigang Gong --- diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp index 2a2476e..4d35652 100644 --- a/backend/src/backend/gen_insn_selection.cpp +++ b/backend/src/backend/gen_insn_selection.cpp @@ -2804,12 +2804,11 @@ namespace gbe GBE_ASSERT(elemSize == GEN_BYTE_SCATTER_WORD || elemSize == GEN_BYTE_SCATTER_BYTE); Register tmpReg = sel.reg(FAMILY_DWORD, simdWidth == 1); - GenRegister tmpAddr = GenRegister::udxgrf(simdWidth, sel.reg(FAMILY_DWORD, simdWidth == 1)); + GenRegister tmpAddr = GenRegister::udxgrf(simdWidth, sel.reg(FAMILY_DWORD)); GenRegister tmpData = GenRegister::udxgrf(simdWidth, tmpReg); // Get dword aligned addr sel.push(); if (simdWidth == 1) { - sel.curr.execWidth = 1; sel.curr.noMask = 1; } sel.AND(tmpAddr, GenRegister::retype(address,GEN_TYPE_UD), GenRegister::immud(0xfffffffc));