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(
2032
2032
unsigned ClusterLength = 2 ;
2033
2033
unsigned CurrentClusterBytes = MemOpa.Width .getValue ().getKnownMinValue () +
2034
2034
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 ();
2039
2040
}
2040
2041
2041
2042
if (!TII->shouldClusterMemOps (MemOpa.BaseOps , MemOpa.Offset ,
You can’t perform that action at this time.
0 commit comments