@@ -1711,24 +1711,23 @@ void CodeGenSchedModels::inferFromRW(ArrayRef<unsigned> OperWrites,
17111711 dbgs () << " ) " );
17121712 // Create a seed transition with an empty PredTerm and the expanded sequences
17131713 // of SchedWrites for the current SchedClass.
1714- std::vector<PredTransition> LastTransitions;
1715- LastTransitions.emplace_back ();
1714+ std::vector<PredTransition> LastTransitions (1 );
17161715
17171716 for (unsigned WriteIdx : OperWrites) {
17181717 IdxVec WriteSeq;
17191718 expandRWSequence (WriteIdx, WriteSeq, /* IsRead=*/ false );
1720- LastTransitions[ 0 ]. WriteSequences . emplace_back ();
1721- SmallVectorImpl< unsigned > &Seq = LastTransitions[0 ].WriteSequences .back ();
1722- Seq. append (WriteSeq. begin (), WriteSeq.end ());
1719+ SmallVectorImpl< unsigned > &Seq =
1720+ LastTransitions[0 ].WriteSequences .emplace_back (WriteSeq. begin (),
1721+ WriteSeq.end ());
17231722 LLVM_DEBUG (dbgs () << " (" ; dumpIdxVec (Seq); dbgs () << " ) " );
17241723 }
17251724 LLVM_DEBUG (dbgs () << " Reads: " );
17261725 for (unsigned ReadIdx : OperReads) {
17271726 IdxVec ReadSeq;
17281727 expandRWSequence (ReadIdx, ReadSeq, /* IsRead=*/ true );
1729- LastTransitions[ 0 ]. ReadSequences . emplace_back ();
1730- SmallVectorImpl< unsigned > &Seq = LastTransitions[0 ].ReadSequences .back ();
1731- Seq. append (ReadSeq. begin (), ReadSeq.end ());
1728+ SmallVectorImpl< unsigned > &Seq =
1729+ LastTransitions[0 ].ReadSequences .emplace_back (ReadSeq. begin (),
1730+ ReadSeq.end ());
17321731 LLVM_DEBUG (dbgs () << " (" ; dumpIdxVec (Seq); dbgs () << " ) " );
17331732 }
17341733 LLVM_DEBUG (dbgs () << ' \n ' );
0 commit comments