@@ -789,7 +789,7 @@ void SWSB::SWSBGlobalTokenGenerator(PointsToAnalysis& p, LiveGRFBuckets& LB, Liv
789789 // Global analysis until no live in change
790790 SWSBGlobalScalarCFGReachAnalysis ();
791791
792- // Add dependence according to analysis result
792+ // Add dependence according ot analysis result
793793 if (fg.builder ->getOptions ()->getOption (vISA_GlobalTokenAllocation) ||
794794 fg.builder ->getOptions ()->getOption (vISA_DistPropTokenAllocation))
795795 {
@@ -5461,12 +5461,11 @@ void SWSB::addGlobalDependenceWithReachingDef(unsigned globalSendNum, SBBUCKET_V
54615461 {
54625462 // Get global send operands killed by current BB
54635463 SBBitSets send_kill (mem, globalSendNum);
5464- // send_live records the live ones from out side of BB, but kill by BB
5464+ // send_live record the live ones from out side of BB, but kill by BB
54655465 SBBitSets send_live (mem, SBSendNodes.size ());
54665466
5467- // send_live_through records all the global livs live through the BB
54685467 SBBitSets send_live_through (mem, globalSendNum);
5469- // send_reach_all records all the global livs live through the BB, copy of send_live_through
5468+ // send_reach_all record all the global livs live through the BB
54705469 SBBitSets send_reach_all (mem, SBSendNodes.size ());
54715470
54725471 send_kill |= *(BBVector[i]->send_live_in );
@@ -5574,15 +5573,13 @@ void SWSB::addGlobalDependenceWithReachingDef(unsigned globalSendNum, SBBUCKET_V
55745573 *node->reachingSends |= send_reach_all;
55755574
55765575 expireLocalIntervals (node->getNodeID (), i);
5576+ if (node->GetInstruction ()->getDst () != nullptr )
55775577 {
5578- if (node->GetInstruction ()->getDst () != nullptr )
5579- {
5580- BBVector[i]->localReachingSends ->setDst (node->sendID , true );
5581- }
5582- else
5583- {
5584- BBVector[i]->localReachingSends ->setSrc (node->sendID , true );
5585- }
5578+ BBVector[i]->localReachingSends ->setDst (node->sendID , true );
5579+ }
5580+ else
5581+ {
5582+ BBVector[i]->localReachingSends ->setSrc (node->sendID , true );
55865583 }
55875584 localTokenUsage.push_back (node); // Add to the live node
55885585 }
0 commit comments