yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

video_core/control_flow: Use the prefix variant of operator++ for iterators

Same thing, but potentially allows a standard library implementation to
pick a more efficient codepath.
This commit is contained in:
Lioncash 2019-07-16 11:42:05 -04:00
parent 6885e7e7ec
commit e7b39f47f8
1 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ bool TryQuery(CFGRebuildState& state) {
const auto gather_end = labels.upper_bound(block.end); const auto gather_end = labels.upper_bound(block.end);
while (gather_start != gather_end) { while (gather_start != gather_end) {
cc.push(gather_start->second); cc.push(gather_start->second);
gather_start++; ++gather_start;
} }
}; };
if (state.queries.empty()) { if (state.queries.empty()) {
@ -470,7 +470,7 @@ std::optional<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code,
continue; continue;
} }
back = next; back = next;
next++; ++next;
} }
return {result_out}; return {result_out};
} }