Skip to content

Commit d55c714

Browse files
petechouigcbot
authored andcommitted
Minor code change.
Minor code change.
1 parent de59225 commit d55c714

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

visa/LocalScheduler/LocalScheduler_G4IR.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,10 +1374,9 @@ DDD::DDD(G4_BB *bb, const LatencyTable &lt, G4_Kernel *k, PointsToAnalysis &p)
13741374
}
13751375

13761376
if (curInst->isDpas()) {
1377-
bool tryGroup = true;
13781377
std::list<G4_INST *>::reverse_iterator iNextInst = iInst;
13791378
iNextInst++;
1380-
if (tryGroup && iNextInst != iInstEnd) {
1379+
if (iNextInst != iInstEnd) {
13811380
G4_INST *nextInst = *iNextInst;
13821381
BitSet liveSrc(totalGRFNum, false);
13831382
BitSet liveDst(totalGRFNum, false);
@@ -1387,7 +1386,9 @@ DDD::DDD(G4_BB *bb, const LatencyTable &lt, G4_Kernel *k, PointsToAnalysis &p)
13871386
// group continuous dpas in the same node if they can potentially form a
13881387
// dpas macro
13891388
while (nextInst->isDpas()) {
1390-
if (!hasSameSourceOneDPAS(curInst, nextInst, liveDst, liveSrc))
1389+
bool canGroup = false;
1390+
canGroup = hasSameSourceOneDPAS(curInst, nextInst, liveDst, liveSrc);
1391+
if (!canGroup)
13911392
break;
13921393

13931394
// Pushed to the same node

0 commit comments

Comments
 (0)