shader: drop the duplicate-use scan from Inst::AddUse

This commit is contained in:
nmzik
2026-10-27 03:46:13 +01:00
parent 91a5ff6cb7
commit 7eb8abb279
2 changed files with 6 additions and 5 deletions
@@ -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});
}