mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 16:23:05 +00:00
shader: drop the duplicate-use scan from Inst::AddUse
This commit is contained in:
1 parent
91a5ff6cb7
commit
7eb8abb279
2 files changed
+6
-5
No files matched your search
@@ -256,9 +256,6 @@ void Inst::Invalidate() {
|
||||
}
|
||||
|
||||
void Inst::AddUse(Inst* used, size_t operand) {
|
||||
const auto found = std::ranges::find_if(
|
||||
used->uses, [&](const Use& use) { return use.user == this && use.operand == operand; });
|
||||
EXIT_IF(found != used->uses.end());
|
||||
used->uses.push_back({this, operand});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user