From: Zhigang Gong Date: Tue, 21 Jan 2014 00:34:29 +0000 (+0800) Subject: GBE: don't allocate grf for those bools which map to flag. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4423dbbba5b385e8a00874842a93a233f7279f8;p=contrib%2Fbeignet.git GBE: don't allocate grf for those bools which map to flag. Signed-off-by: Zhigang Gong Reviewed-by: Yang Rong --- diff --git a/backend/src/backend/gen_reg_allocation.cpp b/backend/src/backend/gen_reg_allocation.cpp index b42aed8..25db169 100644 --- a/backend/src/backend/gen_reg_allocation.cpp +++ b/backend/src/backend/gen_reg_allocation.cpp @@ -484,6 +484,9 @@ namespace gbe if (RA.contains(reg)) continue; // already allocated + if (ctx.sel->getRegisterFamily(reg) == ir::FAMILY_BOOL && !grfBooleans.contains(reg)) + continue; + // Case 1: the register belongs to a vector, allocate all the registers in // one piece auto it = vectorMap.find(reg);