@@ -1414,7 +1414,7 @@ void InterleavedAccessInfo::analyzeInterleaving(
1414
1414
1415
1415
auto InvalidateGroupIfMemberMayWrap = [&](InterleaveGroup<Instruction> *Group,
1416
1416
int Index,
1417
- std::string FirstOrLast) -> bool {
1417
+ StringRef FirstOrLast) -> bool {
1418
1418
Instruction *Member = Group->getMember (Index);
1419
1419
assert (Member && " Group member does not exist" );
1420
1420
Value *MemberPtr = getLoadStorePointerOperand (Member);
@@ -1455,11 +1455,10 @@ void InterleavedAccessInfo::analyzeInterleaving(
1455
1455
// So we check only group member 0 (which is always guaranteed to exist),
1456
1456
// and group member Factor - 1; If the latter doesn't exist we rely on
1457
1457
// peeling (if it is a non-reversed access -- see Case 3).
1458
- if (InvalidateGroupIfMemberMayWrap (Group, 0 , std::string ( " first" ) ))
1458
+ if (InvalidateGroupIfMemberMayWrap (Group, 0 , " first" ))
1459
1459
continue ;
1460
1460
if (Group->getMember (Group->getFactor () - 1 ))
1461
- InvalidateGroupIfMemberMayWrap (Group, Group->getFactor () - 1 ,
1462
- std::string (" last" ));
1461
+ InvalidateGroupIfMemberMayWrap (Group, Group->getFactor () - 1 , " last" );
1463
1462
else {
1464
1463
// Case 3: A non-reversed interleaved load group with gaps: We need
1465
1464
// to execute at least one scalar epilogue iteration. This will ensure
@@ -1503,11 +1502,11 @@ void InterleavedAccessInfo::analyzeInterleaving(
1503
1502
// and the last group member. Case 3 (scalar epilog) is not relevant for
1504
1503
// stores with gaps, which are implemented with masked-store (rather than
1505
1504
// speculative access, as in loads).
1506
- if (InvalidateGroupIfMemberMayWrap (Group, 0 , std::string ( " first" ) ))
1505
+ if (InvalidateGroupIfMemberMayWrap (Group, 0 , " first" ))
1507
1506
continue ;
1508
1507
for (int Index = Group->getFactor () - 1 ; Index > 0 ; Index--)
1509
1508
if (Group->getMember (Index)) {
1510
- InvalidateGroupIfMemberMayWrap (Group, Index, std::string ( " last" ) );
1509
+ InvalidateGroupIfMemberMayWrap (Group, Index, " last" );
1511
1510
break ;
1512
1511
}
1513
1512
}
0 commit comments