@@ -399,7 +399,7 @@ G4_Operand* HWConformity::insertMovBefore(
399399 // due to old BDW regioning rule we need NoMask inst here so they can be split
400400 if (builder.getOptions ()->isTargetCM () && builder.getPlatform () == GENX_BDW)
401401 {
402- if (! bb->isAllLaneActive ())
402+ if (bb->isInSimdFlow ())
403403 {
404404 newInstEMask = InstOpt_WriteEnable;
405405 }
@@ -1530,7 +1530,7 @@ bool HWConformity::fixDstAlignment( INST_LIST_ITER i, G4_BB* bb, G4_Type extype,
15301530
15311531 // optimize initialization instructions
15321532 if ( inst->opcode () == G4_mov && src0->isImm () &&
1533- ( bb->isAllLaneActive () || inst->isWriteEnableInst () ) &&
1533+ ( ! bb->isInSimdFlow () || inst->isWriteEnableInst () ) &&
15341534 !inst->getPredicate () &&
15351535 dst->getRegAccess () == Direct &&
15361536 dst->getHorzStride () == 1 &&
@@ -2252,7 +2252,7 @@ bool HWConformity::fixMULInst( INST_LIST_ITER &i, G4_BB *bb )
22522252 if (next_dst != NULL &&
22532253 (next_inst->getSaturate () ||
22542254 next_dst->getByteOffset () % GENX_GRF_REG_SIZ != 0 ||
2255- (! bb->isAllLaneActive () && next_inst->isWriteEnableInst () == false ) ||
2255+ (bb->isInSimdFlow () && next_inst->isWriteEnableInst () == false ) ||
22562256 (next_dst &&
22572257 ((next_dst->getExecTypeSize () > G4_Type_Table[Type_D].byteSize ) ||
22582258 isPreAssignedRegOffsetNonZero<G4_DstRegRegion>(next_dst)))))
@@ -5462,7 +5462,7 @@ void HWConformity::fixSADA2Inst(G4_BB* bb)
54625462 G4_INST* src2Dst = NULL ;
54635463
54645464 int emask = inst->getMaskOption ();
5465- if (! bb->isAllLaneActive () &&
5465+ if (bb->isInSimdFlow () &&
54665466 emask != InstOpt_WriteEnable &&
54675467 inst->getMaskOffset () != 0 )
54685468 {
@@ -6442,7 +6442,7 @@ bool HWConformity::splitInstListForByteDst( INST_LIST_ITER it, G4_BB *bb, uint16
64426442 // check if we can split the inst
64436443 if ( !canSplitByteDst ( inst_op ) ||
64446444 inst->getExecSize () == 1 ||
6445- ( ! bb->isAllLaneActive () && !inst->isWriteEnableInst () ) ||
6445+ ( bb->isInSimdFlow () && !inst->isWriteEnableInst () ) ||
64466446 dst->getByteOffset () % extypesize != 0 ||
64476447 dst->getHorzStride () != 1 ||
64486448 extypesize != G4_Type_Table[Type_W].byteSize )
@@ -6486,7 +6486,7 @@ bool HWConformity::splitInstListForByteDst( INST_LIST_ITER it, G4_BB *bb, uint16
64866486 }
64876487 if ( canSplit )
64886488 {
6489- if ( ! bb->isAllLaneActive () && !defInst->isWriteEnableInst () )
6489+ if ( bb->isInSimdFlow () && !defInst->isWriteEnableInst () )
64906490 {
64916491 canSplit = false ;
64926492 }
@@ -7806,7 +7806,7 @@ void HWConformity::fixPredCtrl(INST_LIST_ITER it, G4_BB* bb)
78067806 //
78077807 // if f0 happens to be < 16 elements we have to clear upper bits as well in case it has garbage values
78087808 assert (!inst->getCondMod () && " currently don't handle an instruction with conditional modifier" );
7809- assert ((inst->isWriteEnableInst () || bb->isAllLaneActive ()) && " don't handle instruction in SIMD CF for now" );
7809+ assert ((inst->isWriteEnableInst () || ! bb->isInSimdFlow ()) && " don't handle instruction in SIMD CF for now" );
78107810 G4_Declare* tmpFlag = builder.createTempFlag (1 );
78117811 G4_Type flagType = flagDcl->getNumberFlagElements () == 32 ? Type_UD : Type_UW;
78127812 uint32_t allOneMask = (uint32_t ) ((1ULL << flagDcl->getNumberFlagElements ()) - 1 );
0 commit comments