The sync pipeline should always contain the candidate ID. If it doesn't something's gone awry. assert on that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp | ||
---|---|---|
595–596 | Can we convert these into std::find_if? SchedGroup *Match = std::find_if( SyncPipeline.begin(), SyncPipeline.end(), [&CandSGID](SchedGroup SG) { return SG.getSGID() == CandSGID; }); assert(Match != SyncPipeline.end()); |
llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp | ||
---|---|---|
595–596 | Yeah. That'd work too. We can also use llvm::find_if, and capture CandSGID by value. |
Can we convert these into std::find_if?