@@ -251,8 +251,8 @@ namespace IGC
251
251
SetCurrentPart (tupleGeneratingInstruction, numPart);
252
252
const uint numOperands = GetNumPayloadElements (tupleGeneratingInstruction);
253
253
bool isAnyNodeAnchored = false , isAnyNodeCoalescable = false ;
254
- SmallPtrSet<CCTuple*, 8 > touchedTuplesSet;
255
- SmallVector<CCTuple*, 8 > touchedTuples;
254
+ SmallPtrSet<CCTuple*, MaxTouchedTuples > touchedTuplesSet;
255
+ SmallVector<CCTuple*, MaxTouchedTuples > touchedTuples;
256
256
257
257
// Step: Prepare.
258
258
PrepareTuple (
@@ -371,7 +371,7 @@ namespace IGC
371
371
// provided that elements in dominatorsForDisplacement are displaced, and other nodes are attached.
372
372
// If interferes is true, then no element will be attached to the ccTuple.
373
373
if (!interferes) {
374
- SmallPtrSet<Value*, 8 > touchedValuesSet;
374
+ SmallPtrSet<Value*, MaxTouchedTuples > touchedValuesSet;
375
375
for (uint i = 0 ; i < numOperands; i++) {
376
376
Value* val = GetPayloadElementToValueMapping (tupleGeneratingInstruction, i);
377
377
@@ -575,8 +575,8 @@ namespace IGC
575
575
void CoalescingEngine::PrepareTuple (
576
576
const uint numOperands,
577
577
Instruction* tupleGeneratingInstruction,
578
- SmallPtrSet<CCTuple*, 8 > & touchedTuplesSet,
579
- SmallVector<CCTuple*, 8 > & touchedTuples,
578
+ SmallPtrSet<CCTuple*, MaxTouchedTuples > & touchedTuplesSet,
579
+ SmallVector<CCTuple*, MaxTouchedTuples > & touchedTuples,
580
580
bool & isAnyNodeAnchored,
581
581
bool & isAnyNodeCoalescable)
582
582
{
@@ -843,7 +843,7 @@ namespace IGC
843
843
CCTuple* ccTuple,
844
844
ElementFunctor* functor)
845
845
{
846
- SmallPtrSet<Value*, 8 > touchedValuesSet;
846
+ SmallPtrSet<Value*, MaxTouchedTuples > touchedValuesSet;
847
847
848
848
for (uint i = 0 ; i < numOperands; i++) {
849
849
functor->SetIndex (i);
@@ -1001,7 +1001,7 @@ namespace IGC
1001
1001
CCTuple* ccTuple,
1002
1002
ProcessInterferencesElementFunctor* interferencesFunctor)
1003
1003
{
1004
- SmallPtrSet<Value*, 8 > touchedValuesSet;
1004
+ SmallPtrSet<Value*, MaxTouchedTuples > touchedValuesSet;
1005
1005
GatherWeightElementFunctor gatherFunctor;
1006
1006
ProcessElements (numOperands, tupleInst, offsetDiff, ccTuple, &gatherFunctor);
1007
1007
bool forceEviction =
@@ -1071,7 +1071,7 @@ namespace IGC
1071
1071
1072
1072
if (ccTuple)
1073
1073
{
1074
- SmallPtrSet<Value*, 8 > touchedValuesSet;
1074
+ SmallPtrSet<Value*, MaxTouchedTuples > touchedValuesSet;
1075
1075
1076
1076
// index = 0;
1077
1077
payloadCovered = true ;
@@ -1179,7 +1179,7 @@ namespace IGC
1179
1179
}
1180
1180
1181
1181
if (payloadCovered) {
1182
- SmallPtrSet<Value*, 8 > touchedValuesSet;
1182
+ SmallPtrSet<Value*, MaxTouchedTuples > touchedValuesSet;
1183
1183
1184
1184
for (uint index = 0 ; index < numOperands; index++)
1185
1185
{
0 commit comments