File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ void InstSplitPass::run()
7676 }
7777
7878 if (inst->isSend () || inst->opcode () == G4_label || inst->opcode () == G4_pln
79- || inst->opcode () == G4_return || inst->isFlowControl ())
79+ || inst->opcode () == G4_return || inst->isFlowControl () || inst-> isPseudoLogic () )
8080 {
8181 continue ;
8282 }
@@ -109,7 +109,7 @@ INST_LIST_ITER InstSplitPass::splitInstruction(INST_LIST_ITER it)
109109 G4_SrcRegRegion* src = opnd->asSrcRegRegion ();
110110 uint32_t leftBound = 0 , rightBound = 0 ;
111111 computeSrcBounds (src, leftBound, rightBound);
112- return (leftBound / ( getGRFSize () * 2u )) != (rightBound / ( getGRFSize () * 2u ) );
112+ return (rightBound - leftBound) > ( getGRFSize () * 2u );
113113 };
114114
115115 auto cross2GRFDst = [inst, this ](G4_DstRegRegion* dst)
@@ -120,7 +120,7 @@ INST_LIST_ITER InstSplitPass::splitInstruction(INST_LIST_ITER it)
120120 }
121121 uint32_t leftBound = 0 , rightBound = 0 ;
122122 computeDstBounds (dst, leftBound, rightBound);
123- return (leftBound / ( getGRFSize () * 2u )) != (rightBound / ( getGRFSize () * 2u ) );
123+ return (rightBound - leftBound) > ( getGRFSize () * 2u );
124124 };
125125
126126 // Check sources
You can’t perform that action at this time.
0 commit comments