@@ -1702,24 +1702,23 @@ void CodeGenSchedModels::inferFromRW(ArrayRef<unsigned> OperWrites,
1702
1702
dbgs () << " ) " );
1703
1703
// Create a seed transition with an empty PredTerm and the expanded sequences
1704
1704
// of SchedWrites for the current SchedClass.
1705
- std::vector<PredTransition> LastTransitions;
1706
- LastTransitions.emplace_back ();
1705
+ std::vector<PredTransition> LastTransitions (1 );
1707
1706
1708
1707
for (unsigned WriteIdx : OperWrites) {
1709
1708
IdxVec WriteSeq;
1710
1709
expandRWSequence (WriteIdx, WriteSeq, /* IsRead=*/ false );
1711
- LastTransitions[ 0 ]. WriteSequences . emplace_back ();
1712
- SmallVectorImpl< unsigned > &Seq = LastTransitions[0 ].WriteSequences .back ();
1713
- Seq. append (WriteSeq. begin (), WriteSeq.end ());
1710
+ SmallVectorImpl< unsigned > &Seq =
1711
+ LastTransitions[0 ].WriteSequences .emplace_back (WriteSeq. begin (),
1712
+ WriteSeq.end ());
1714
1713
LLVM_DEBUG (dbgs () << " (" ; dumpIdxVec (Seq); dbgs () << " ) " );
1715
1714
}
1716
1715
LLVM_DEBUG (dbgs () << " Reads: " );
1717
1716
for (unsigned ReadIdx : OperReads) {
1718
1717
IdxVec ReadSeq;
1719
1718
expandRWSequence (ReadIdx, ReadSeq, /* IsRead=*/ true );
1720
- LastTransitions[ 0 ]. ReadSequences . emplace_back ();
1721
- SmallVectorImpl< unsigned > &Seq = LastTransitions[0 ].ReadSequences .back ();
1722
- Seq. append (ReadSeq. begin (), ReadSeq.end ());
1719
+ SmallVectorImpl< unsigned > &Seq =
1720
+ LastTransitions[0 ].ReadSequences .emplace_back (ReadSeq. begin (),
1721
+ ReadSeq.end ());
1723
1722
LLVM_DEBUG (dbgs () << " (" ; dumpIdxVec (Seq); dbgs () << " ) " );
1724
1723
}
1725
1724
LLVM_DEBUG (dbgs () << ' \n ' );
0 commit comments