GBE: allow the bool registers to be expired.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 23 Jan 2014 06:25:55 +0000 (14:25 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Sun, 26 Jan 2014 08:46:48 +0000 (16:46 +0800)
After the previous's extra liveness analysis, we can allow bool
registers to be expired now.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
backend/src/backend/gen_reg_allocation.cpp

index 4e33240..fedd730 100644 (file)
@@ -294,8 +294,7 @@ namespace gbe
         continue;
       }
       // Ignore booleans that were allocated with flags
-      // if (ctx.getRegisterFamily(reg) == ir::FAMILY_BOOL && !grfBooleans.contains(reg)) {
-      if (ctx.sel->getRegisterFamily(reg) == ir::FAMILY_BOOL) {
+      if (ctx.sel->getRegisterFamily(reg) == ir::FAMILY_BOOL && !grfBooleans.contains(reg)) {
         this->expiringID++;
         continue;
       }