File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2032,10 +2032,11 @@ void BaseMemOpClusterMutation::clusterNeighboringMemOps(
20322032 unsigned ClusterLength = 2 ;
20332033 unsigned CurrentClusterBytes = MemOpa.Width .getValue ().getKnownMinValue () +
20342034 MemOpb.Width .getValue ().getKnownMinValue ();
2035- if (SUnit2ClusterInfo.count (MemOpa.SU ->NodeNum )) {
2036- ClusterLength = SUnit2ClusterInfo[MemOpa.SU ->NodeNum ].first + 1 ;
2037- CurrentClusterBytes = SUnit2ClusterInfo[MemOpa.SU ->NodeNum ].second +
2038- MemOpb.Width .getValue ().getKnownMinValue ();
2035+ auto It = SUnit2ClusterInfo.find (MemOpa.SU ->NodeNum );
2036+ if (It != SUnit2ClusterInfo.end ()) {
2037+ const auto &[Len, Bytes] = It->second ;
2038+ ClusterLength = Len + 1 ;
2039+ CurrentClusterBytes = Bytes + MemOpb.Width .getValue ().getKnownMinValue ();
20392040 }
20402041
20412042 if (!TII->shouldClusterMemOps (MemOpa.BaseOps , MemOpa.Offset ,
You can’t perform that action at this time.
0 commit comments