File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -307,10 +307,8 @@ void BenchmarkClustering::stabilize(unsigned NumOpcodes) {
307
307
assert (std::distance (it, OldCluster.PointIndices .end ()) > 0 &&
308
308
" Should have found at least one bad point" );
309
309
// Mark to-be-moved points as belonging to the new cluster.
310
- std::for_each (it, OldCluster.PointIndices .end (),
311
- [this , &UnstableCluster](size_t P) {
312
- ClusterIdForPoint_[P] = UnstableCluster.Id ;
313
- });
310
+ for (size_t P : llvm::make_range (it, OldCluster.PointIndices .end ()))
311
+ ClusterIdForPoint_[P] = UnstableCluster.Id ;
314
312
// Actually append to-be-moved points to the new cluster.
315
313
UnstableCluster.PointIndices .insert (UnstableCluster.PointIndices .end (),
316
314
it, OldCluster.PointIndices .end ());
Original file line number Diff line number Diff line change @@ -503,11 +503,8 @@ void benchmarkMain() {
503
503
}
504
504
505
505
BitVector AllReservedRegs;
506
- llvm::for_each (Repetitors,
507
- [&AllReservedRegs](
508
- const std::unique_ptr<const SnippetRepetitor> &Repetitor) {
509
- AllReservedRegs |= Repetitor->getReservedRegs ();
510
- });
506
+ for (const std::unique_ptr<const SnippetRepetitor> &Repetitor : Repetitors)
507
+ AllReservedRegs |= Repetitor->getReservedRegs ();
511
508
512
509
std::vector<BenchmarkCode> Configurations;
513
510
if (!Opcodes.empty ()) {
You can’t perform that action at this time.
0 commit comments