commit | f82f5af5e212373230b8df4dedbd8e1c950e1cc1 | [log] [tgz] |
---|---|---|
author | Vasyl Teliman <vasniktel@gmail.com> | Thu Apr 29 11:44:59 2021 +0300 |
committer | GitHub <noreply@github.com> | Thu Apr 29 09:44:59 2021 +0100 |
tree | 1c464fd1377564e0439f9859224debb2ce206786 | |
parent | 089d716d2552fdf43fd8f067ce5f57b8237a7c2d [diff] |
Invalidate DefUse analysis (#4255) Fixes #4252.
diff --git a/source/reduce/change_operand_to_undef_reduction_opportunity.cpp b/source/reduce/change_operand_to_undef_reduction_opportunity.cpp index 8e33da6..7cc06a0 100644 --- a/source/reduce/change_operand_to_undef_reduction_opportunity.cpp +++ b/source/reduce/change_operand_to_undef_reduction_opportunity.cpp
@@ -35,6 +35,7 @@ assert(operand_type_id); auto undef_id = FindOrCreateGlobalUndef(context_, operand_type_id); inst_->SetOperand(operand_index_, {undef_id}); + context_->InvalidateAnalyses(opt::IRContext::kAnalysisDefUse); } } // namespace reduce