[Beignet] [PATCH] GBE: don't allocate grf for those bools which map to flag.
Zhigang Gong
zhigang.gong at intel.com
Tue Jan 21 18:42:28 PST 2014
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
backend/src/backend/gen_reg_allocation.cpp | 3 +++
1 file changed, 3 insertions(+)
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);
--
1.7.9.5
More information about the Beignet
mailing list