@@ -1292,8 +1292,8 @@ class PredTransitions {
12921292
12931293 PredTransitions (CodeGenSchedModels &sm) : SchedModels(sm) {}
12941294
1295- bool substituteVariantOperand (const SmallVectorImpl <unsigned > & RWSeq,
1296- bool IsRead, unsigned StartIdx);
1295+ bool substituteVariantOperand (ArrayRef <unsigned > RWSeq, bool IsRead ,
1296+ unsigned StartIdx);
12971297
12981298 bool substituteVariants (const PredTransition &Trans);
12991299
@@ -1526,8 +1526,8 @@ void PredTransitions::pushVariant(const TransVariant &VInfo, bool IsRead) {
15261526// operand. StartIdx is an index into TransVec where partial results
15271527// starts. RWSeq must be applied to all transitions between StartIdx and the end
15281528// of TransVec.
1529- bool PredTransitions::substituteVariantOperand (
1530- const SmallVectorImpl< unsigned > &RWSeq, bool IsRead, unsigned StartIdx) {
1529+ bool PredTransitions::substituteVariantOperand (ArrayRef< unsigned > RWSeq,
1530+ bool IsRead, unsigned StartIdx) {
15311531 bool Subst = false ;
15321532 // Visit each original RW within the current sequence.
15331533 for (unsigned int RWI : RWSeq) {
@@ -1591,7 +1591,7 @@ bool PredTransitions::substituteVariants(const PredTransition &Trans) {
15911591}
15921592
15931593static void addSequences (CodeGenSchedModels &SchedModels,
1594- const SmallVectorImpl <SmallVector<unsigned , 4 >> & Seqs,
1594+ ArrayRef <SmallVector<unsigned , 4 >> Seqs,
15951595 IdxVec &Result, bool IsRead) {
15961596 for (const auto &S : Seqs)
15971597 if (!S.empty ())
0 commit comments